MongoDB中是否有原生REST接口? [英] Does MongoDB have a native REST interface?

查看:845
本文介绍了MongoDB中是否有原生REST接口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在评估蒙戈和CouchDB中存储的数据点(分析)。

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

在我早期使用CouchDB的互动,我喜欢它的基于JSONP接口。我可以从纯粹的JavaScript执行所有CRUD操作。
只要运行CouchDB的,写一些JavaScript - 没有服务器端组件需要

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.

在比较这蒙戈,有没有REST接口可用?
是否有可能在蒙戈从JavaScript做CRUD纯粹?

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

谢谢!

推荐答案

有没有成熟的REST接口MongoDB的,主要是因为服务器使用效率的原生二进制协议。您可以在官方文档几个REST包装:

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:


      
  • RESTHeart (Java的8)是MongoDB的生态系统的数据REST API服务器的一部分。 RESTHeart使用基于HAL通过BSON的严格模式重新presentation全面的本地MongoDB的数据支持标准的重新presentation格式。
      它提供API CRUD和数据模型操作,内置的身份验证和授权,并支持CORS。
      这是很容易设置和码头工人,容器是可用的。 RESTHeart也快,重量轻(〜7 MB的足迹〜200 MB RAM偷看使用)。

  • 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).

困猫鼬(蟒蛇)是MongoDB的一个全功能的REST接口是可以作为一个单独的项目。

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

MongoDB的休息(Node.js的)是一个阿尔法 REST接口的MongoDB,它使用MongoDB的节点本地驱动程序。

MongoDB Rest (Node.js) is an alpha REST interface to MongoDB, which uses the MongoDB Node Native driver.

简单的REST接口中的mongod的过程包括方便简单的只读REST接口。为了充分休息的能力,我们建议您使用外部工具如的 Sleepy.Mongoose

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.

这篇关于MongoDB中是否有原生REST接口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆