Mongo DB REST Option

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

Does the MongoDB REST interface use the same as CouchDB? If not, then what is it for?

+4
source share
3 answers

MongoDB does not use a REST interface for communication.

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

The following is a list of drivers .

The --rest option allows you to run some basic queries and control the mongod process. This is not a complete REST API.

+6
source

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

+2
source

The reason for this is because you started the database without the -rest option. To do this, you can start the database from your MongoDB bin directory, for example, "./mongod --rest".

0
source

All Articles