top | item 5495165

REST Interface for MongoDB

55 points| fatiherikli | 13 years ago |github.com | reply

14 comments

order
[+] aroman|13 years ago|reply
I wonder what it would take to make an adapter for this to Backbone. I'm sure i'm not the only one a little annoyed by the amount of boilerplate I need to write to define every API endpoint I expose from MongoDB as a Backbone-compatible REST interface...
[+] habosa|13 years ago|reply
This is awesome, something I'd love to deploy as a simple backend for a mobile app. It would be great if this could be integrated into a known high-performance web framework/server combo so I could deploy it on AWS/Heroku/etc. I currently use Rails and set up RESt endpoints that make a JSON API from my Postgres data but it would be much better in many cases to use MongoDB and make REST calls through a tool like this.
[+] mattdeboard|13 years ago|reply
This suffers from the same weaknesses that your MongoDB resource for Tastypie (from which this is derived) suffers. It hard codes the querying functions, leaves no flexibility for connection establishment, and so forth. It needs more "args, *kwargs" in your function signatures, more parameterization of query fields and less hard-coding.