vuk-nikolic / klopaj-www-grails

Grails implementation of klopaj.com website
3 stars 0 forks source link

Poi API: add comments #10

Open vuk-nikolic opened 12 years ago

vuk-nikolic commented 12 years ago

Users should be able to add comments.

Example: POST: rest/pois/[poi id]/comments/add

POST body: text=[text of the comment]

Response header:

Status Code: 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Date: Fri, 20 Apr 2012 20:17:13 GMT

Response body:

{
    "poiId": "1298",
    "text": "Iz resta",
    "userId": "2",
    "vote": "0"
}