Does MongoDB have a native REST interface?

后端 未结 7 1292
你的背包
你的背包 2020-12-03 01:13

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 cou

7条回答
  •  余生分开走
    2020-12-03 01:43

    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.
    • Rest on Mongo for node.js. The older MongoDB Rest is no longer maintained.
    • 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.

提交回复
热议问题