Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added in example curl command.

  • Loading branch information...
commit 40c9189584815d98024ff23404a1beb1d69e2ad9 1 parent ae062c0
Tom de Grunt authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 README.md
12 README.md
View
@@ -15,6 +15,18 @@ Installation
Installation is now via npm: `npm install mongodb-rest`.
After that you can just issue `mongodb-rest` on the command line and the server should start.
+Try
+---
+
+After installation you can quickly try whether it works by issuing the following from the command line:
+> curl -d '{ "A1" : 201 }' -H "Content-Type: application/json" http://localhost:3000/test/example1
+
+This should add a document to the "test" db.example1 collection:
+{
+"A1": 201,
+"_id": ObjectId("4e90e196b0c7f4687000000e")
+}
+
Notes
-----
Please sign in to comment.
Something went wrong with that request. Please try again.