Rest API interface for MongoDB
Simple command line application for adding a REST API on top of a MongoDB database.
Access to the API is controlled via JSON Web Tokens (JWT) that can easily be created using the the cli. Tokens can contain granted scopes that limit access to specific collections and methods performed on those collections.
NOTE: More documentation to come.
$ npm install --global dozer
$ ./dozer help server
Usage: dozer-server [options] [command]
Commands:
start [options] [config] Start a dozer server
Options:
-h, --help output usage information
$ ./dozer help tokens
Usage: dozer-tokens [options] [command]
Commands:
create [options] [config] Creates a new token used to access the API
verify [options] [config] Verifies that the given token is valid and displays token information
decode [options] [config] Decodes the given token and displays token information
Options:
-h, --help output usage information
$ ./dozer help client
Usage: dozer-client [options] [command]
Commands:
get|find [options] <uri> Send GET request to dozer server
post|insert [options] <uri> Send POST request to dozer server
put|update [options] <uri> Send PUT request to dozer server
delete|del [options] <uri> Send DELETE request to dozer server
Options:
-h, --help output usage information
TODO
ISC © Adam Daniel