Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (50.2k points)
I am using Mongo and CouchDB for storing data points basically for analytics.

When comparing CouhDB to Mongo, is there any REST interface possible in Mongo?

Is it possible to perform CRUD operations from javascript in Mongo?

1 Answer

0 votes
by (107k points)
edited by

There are many REST interfaces like Eve(Python), RESTHeart(Java), DrowsyDromedary(Ruby), Crest(Node.js), AMID, Kule, DreamFactory. 

If you are using Python Eve as a REST interface for MongoDB then it is very easy to get started:

from eve import Eve

app = Eve()

app.run()

and to use as

$ curl -i http://example.com/people

 HTTP/1.1 200 OK

In the settings file, the REST endpoint schemas are defined.

Do check out this Full Stack Developer Online Course to help you enhance your skills.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...