b0ri5/mara-places — pull request #4 by b0ri5 (2013-12-22 07:09:23+00:00)
Title: Add get and post handlers for places at /maraplaces

@eerbiceanu:

Serves the contents of the storage at /maraplaces:
$ curl 192.168.1.25:8080/maraplace
[{"Location":"posted","Note":"notez","Date":"2123-12-22T06:32:54.297997Z"},{"Location":"a","Note":"b","Date":"2013-12-22T06:32:54.297997Z"}]

Allows for adding an entry as well:
$ curl -X POST -H "Content-Type: application/json" -d '{"Location":"hai!","Note":"bai!","Date":"212
3-12-22T06:32:54.297997Z"}' http://192.168.1.25:8080/maraplace
$ curl 192.168.1.25:8080/maraplace
[{"Location":"hai!","Note":"bai!","Date":"2123-12-22T06:32:54.297997Z"},{"Location":"posted","Note":"notez","Date":"2123-12-22T06:32:54.297997Z"},{"Location":"a","Note":"b","Date":"2013-12-22T06:32:54.297997Z"}]