api/v1/likes/create

POST /api/v1/products/12/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": 4,
  "user_id": 35,
  "product_id": 12,
  "created_at": "2012-08-02T02:56:15Z",
  "updated_at": "2012-08-02T02:56:15Z",
  "permissions": {
    "manage": true,
    "read": true,
    "create": true,
    "update": true,
    "destroy": true
  }
}