api/v1/likes/index
GET /api/v1/products/10/likes
Status: 200
Body
// No request body necessary.
Headers:
'Access-Control-Allow-Origin': '"*"'
'Access-Control-Allow-Credentials': '"true"'
'Access-Control-Allow-Methods': '"GET, POST, PUT, DELETE, OPTIONS"'
'Access-Control-Allow-Headers': '"x-requested-with, x-requested-by, Authorization"'
'Content-Type': '"application/json; charset=utf-8"'
Body
[
{
"id": 1,
"user_id": 31,
"product_id": 10,
"created_at": "2012-08-02T02:56:15Z",
"updated_at": "2012-08-02T02:56:15Z",
"permissions": {
"manage": false,
"read": true,
"create": false,
"update": false,
"destroy": false
}
},
{
"id": 2,
"user_id": 32,
"product_id": 10,
"created_at": "2012-08-02T02:56:15Z",
"updated_at": "2012-08-02T02:56:15Z",
"permissions": {
"manage": false,
"read": true,
"create": false,
"update": false,
"destroy": false
}
}
]