A Quasi-RESTful Web Service for MongoDB.
Experimental, not well tested.
- Run
sudo npm install ming -g
- Run
ming
(see Usage) - Put an SSL-enabled proxy in front of it
port
: Ming Server port (default 27080)connection-string
: MongoDB Connection String for the default deployment (default mongodb://localhost/ming)
ming --connection-string mongodb://mymongoserver/mymongodb
GET /
retrieve collection namesGET /:collection
retrieve collection statisticsGET /:collection/:document
retrieve documentGET /:collection/:document/:field
retrieve field of documentPOST /:collection/query
query documentsPOST /:collection
create documentPATCH /:collection/:document
update documentDELETE /:collection/:document
delete document
GET /:prefix.files/:file
retrieve metadata of fileGET /:prefix.files/:file?binary=true
retrieve contents of filePOST /:prefix.files
create fileDELETE /:prefix.files/:file
delete file
Authorization
basic HTTP authorization (e.g. in JavaScript"Authorization : Basic " + btoa(username + ":" + password)
)