Light Docs

List all reviews of a product

GET
/products/{product}/reviews

Authorization

bearerAuth

Path Parameters

product*integer

The product ID

Response Body

application/json

application/json

application/json

curl -X GET "http://localhost:8000/api/products/0/reviews"
{
  "data": [
    {
      "id": 0,
      "user_id": 0,
      "product_id": 0,
      "rating": 0,
      "content": "string",
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z",
      "type": "string",
      "external_source": "string",
      "external_author": "string",
      "external_url": "string",
      "featured": "string"
    }
  ]
}
{
  "message": "string"
}
{
  "message": "string"
}