0.1.1 • Published 8 years ago

mongro v0.1.1

Weekly downloads
5
License
-
Repository
github
Last release
8 years ago

mongro

quick mongodb RESTful API

usage (will add more if there is interest):

run with node ./lib/server --express.port=port

use any method for these endpoints:

/db/:db_name/collection/:collection_name/method/:method.json

method corresponds with any of the following from the Node.js MongoDB driver:

  • find
  • findOne
  • findOneAndUpdate
  • findOneAndReplace
  • findOneAndRemove
  • deleteOne
  • deleteMany
  • insertOne
  • insertMany
  • updateOne
  • updateMany

pass options to the request query or body (body is better as it will probably cast options to their appropriate type)

License

Copyright (c) 2016 Ben Sack
Licensed under the MIT license.