Comments can be added to individual items.
GET https://api.dropmark.com/v1/items/:item_id/comments
[
{
"id": 100,
"user_id": 1,
"username": "demo",
"avatar": "https://gravatar.com/avatar/db450747b81669f6cea",
"name": "Jane Doe",
"email": "jane@example.com",
"body": "@john That's dope",
"annotation": null,
"created_at": "2016-08-16T17:00:05Z",
"updated_at": "2016-08-16T17:00:05Z"
}
]
POST https://api.dropmark.com/v1/items/:item_id/comments
{
"id": 100,
"user_id": 1,
"username": "demo",
"avatar": "https://gravatar.com/avatar/db450747b81669f6cea",
"name": "Jane Doe",
"email": "jane@example.com",
"body": "@john That's dope",
"annotation": null,
"created_at": "2016-08-16T17:00:05Z",
"updated_at": "2016-08-16T17:00:05Z"
}
PUT https://api.dropmark.com/v1/comments/:comment_id
{
"id": 100,
"user_id": 1,
"username": "demo",
"avatar": "https://gravatar.com/avatar/db450747b81669f6cea",
"name": "Jane Doe",
"email": "jane@example.com",
"body": "@john That's dope",
"annotation": null,
"created_at": "2016-08-16T17:00:05Z",
"updated_at": "2016-08-16T17:00:05Z"
}
DELETE https://api.dropmark.com/v1/comments/:comment_id