The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

webapi-dbic-any.psgi - instant WebAPI::DBIC browser for any DBIx::Class schema

SYNOPSIS

    $ 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.

For details on the WEBAPI_DBIC_HTTP_AUTH_TYPE env var and security issues see http_auth_type in WebAPI::DBIC::Resource::Role::DBICAuth.