ming
A Quasi-RESTful Web Service for MongoDB.
Last updated 7 years ago by agrueneberg .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install ming 
SYNC missed versions from official npm registry.

Ming

A Quasi-RESTful Web Service for MongoDB.

Status

Experimental, not well tested.

Installation

  • Run sudo npm install ming -g
  • Run ming (see Usage)
  • Put an SSL-enabled proxy in front of it

Usage

  • port: Ming Server port (default 1337)
  • connection-string: MongoDB Connection String for the default deployment (default mongodb://localhost/ming)

Example

ming --connection-string mongodb://mymongoserver/mymongodb

Clients

API

Routes

Documents

  • GET / retrieve collection names
  • GET /:collection retrieve collection statistics
  • GET /:collection/:document retrieve document
  • GET /:collection/:document/:field retrieve field of document
  • POST /:collection/query query documents
  • POST /:collection create document
  • PATCH /:collection/:document update document
  • DELETE /:collection/:document delete document

Files (GridFS)

  • GET /:prefix.files/:file retrieve metadata of file
  • GET /:prefix.files/:file?binary=true retrieve contents of file
  • POST /:prefix.files create file
  • DELETE /:prefix.files/:file delete file

Headers

  • Authorization basic HTTP authorization (e.g. in JavaScript "Authorization : Basic " + btoa(username + ":" + password))

Current Tags

  • 0.2.1                                ...           latest (7 years ago)

3 Versions

  • 0.2.1                                ...           7 years ago
  • 0.2.0                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 1
Dependencies (7)
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2016 © taobao.org |