Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
-7
rated 0 times [  0] [ 7]  / answers: 1 / hits: 65748  / 13 Years ago, mon, september 12, 2011, 12:00:00

I am currently evaluating Mongo and CouchDB for storing data points (analytics).



During my earlier interaction with CouchDB, I loved its JSONP based interface. I could perform all CRUD operations from purely JavaScript.
Just run CouchDB and write some JavaScript - no server side component needed.



When comparing this to Mongo, is there any REST interface available?
Is it possible to do CRUD purely from javascript in Mongo?



Thanks!


More From » mongodb

 Answers
21

There is no full-blown REST interface to MongoDB, mainly because the server uses native binary protocol for efficiency. You can find few REST wrappers in official documentation (edit: MongoDB inc has now deleted this information):




  • RESTHeart (Java 8) is a the data REST API server part of the MongoDB ecosystem. RESTHeart uses a standard representation format based on HAL with full native mongodb data support via the strict mode representation of BSON.
    It provides API for CRUD and data model operations, built-in authentication and authorization and it supports CORS.
    It is easy to setup and a docker container is available. RESTHeart is also fast and lightweight (~7 Mb footprint and ~200 Mb RAM peek usage).





  • Sleepy Mongoose (Python) is a full featured REST interface for MongoDB which is available as a separate project.








  • Simple REST Interface The mongod process includes a simple read-only REST interface for convenience. For full REST capabilities we recommend using an external tool such as Sleepy.Mongoose.



[#90149] Friday, September 9, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
johnathanhakeems

Total Points: 487
Total Questions: 129
Total Answers: 100

Location: Fiji
Member since Fri, Nov 13, 2020
4 Years ago
;