MongoDB HTTP Interface

Source: Internet
Author: User
Tags mongodb mongodb http interface
Demand

We want to provide a restful API for MongoDB, until now I have no spectrum of design for the RESTful API, just know what I need to meet Now

Support conditional query, using MongoDB command is Db.coll.find ({name: "SPE"}), special, require interface support name:/spe/This fuzzy query supports display fields support SortBy, skip, limit Support for INSERT, update via HTTP GET, put, post needs to be verified by the user of the operation plainly, it is to put mongodb some common operations with the RESTful API, so that a few operations via HTTP can be completed. As a mature kv database, MongoDB should have done this thing well, this is my initial idea. Indeed, MongoDB provides a simple HTTP interface, but this interface only supports query operations for security, and there are relatively few related documents, but it recommends a number of third-party libraries, and I've looked at these several libraries
third-party library code needs to be written in Java, so libraries in other languages are not considered, focusing on two library Restheart, spring data rest Restheart (JDK 1.8) Restheart is open source software, Its source code can be found under GitHub, because the project uses JDK1.6, so restheart I can not use, but I read its description, I think its API style is very pleasing, so I downloaded its code to try to learn from the code what API two experience
Spring Data Rest (JDK 1.6)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.