Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mongo DB REST Option

Tags:

rest

mongodb

I know that one of the biggest differences between CouchDB and MongoDB is that Couch uses a REST interface. I've installed Mongo without any other libraries, and the mongod service provides a --rest command-line option.

Does the MongoDB REST interface do the same thing as CouchDB's? If not then what's it for?

like image 912
kamaci Avatar asked Feb 23 '23 17:02

kamaci


2 Answers

MongoDB does not use a REST interface for communications.

You will need to install a specific driver for you language. Just as you would for MySQL or SQL Server or most other databases.

The list of drivers are here.

The --rest option allows for you to run some basic queries and monitoring against the mongod process. It is not a full REST API.

like image 191
Gates VP Avatar answered May 14 '23 01:05

Gates VP


If you're interested in a REST API interface for MongoDB then check out the Sleepy.Mongoose project.

like image 38
Chris Fulstow Avatar answered May 14 '23 01:05

Chris Fulstow