see test/README.md
see test/README.md for details
https://guarded-coast-8897.herokuapp.com/api/<collection>
collection : Can be any named collection. "testissue" is used and cleared by test cases.
curl -X POST -d'{text:"hejsan"}' "https://guarded-coast-8897.herokuapp.com/api/testissue"
curl -X GET "https://guarded-coast-8897.herokuapp.com/api/testissue/"
curl -X GET "https://guarded-coast-8897.herokuapp.com/api/testissue/<documentId>"
curl -X PUT -d'{text:"A new text"}' "https://guarded-coast-8897.herokuapp.com/api/testissue/<documentId>"
curl -X DELETE "https://guarded-coast-8897.herokuapp.com/api/testissue/<documentId>"
curl -X DELETE "https://guarded-coast-8897.herokuapp.com/api/testissue"
"testissue" can be replaced with any collection name
curl -X POST -d'{text:"hejsan"}' "https://guarded-coast-8897.herokuapp.com/api/testissue"
Will generate "_id" automatically (since it is missing in the document)
You can specify "_id" in the document before POST but then it must match mongoDB id pattern
heroku addons:create mongolab
heroku config | grep MONGOLAB_URI
heroku addons:open mongolab
brew install mongodb
mongod --config /usr/local/etc/mongod.conf