Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

API POST mws res_id db collection_name insert

Michael Comella edited this page May 12, 2013 · 4 revisions
POST mws/:res_id/db/:collection_name/insert

db.collection.insert(document) - Inserts the the given document into the given mws resource and returns a status code, and an error string if the insertion is unsuccessful.

Params

  • :res_id - The id of the desired mws resource.
  • :collection_name - The mongo "collection" in which to insert the document.
  • document - A mongo "document" to insert into the collection.

Returns

  • status_code - The code describing the status of the given insertion.
  • result - An error string if the insertion is unsuccessful.

TODO

  • Provide linked "document" resources.
Clone this wiki locally