webapi-dbic-any.psgi - instant WebAPI::DBIC browser for any DBIx::Class schema
$ export WEBAPI_DBIC_SCHEMA=Foo::Bar # your own schema $ export WEBAPI_DBIC_HTTP_AUTH_TYPE=none # recommended $ export DBI_DSN=dbi:Driver:... # your own database $ export DBI_USER=... # for initial connection, if needed $ export DBI_PASS=... # for initial connection, if needed $ plackup webapi-dbic-any.psgi ... open a web browser on port 5000 to browse your new API
The API provided by this .psgi file will be read-only unless the WEBAPI_DBIC_WRITABLE env var is true.
WEBAPI_DBIC_WRITABLE
For details on the WEBAPI_DBIC_HTTP_AUTH_TYPE env var and security issues see http_auth_type in WebAPI::DBIC::Resource::Role::DBICAuth.
WEBAPI_DBIC_HTTP_AUTH_TYPE
http_auth_type
To install WebAPI::DBIC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebAPI::DBIC
CPAN shell
perl -MCPAN -e shell install WebAPI::DBIC
For more information on module installation, please visit the detailed CPAN module installation guide.