Product all Comments
To fetch all comments of products
GET
https://emart.castleindia.in /api/comments/{productid}/{type}?secret=xxxx
Path Parameters
Name
Type
Description
productid*
Integer
ID of product
type*
String
if variant product then type is v if simple product then type is s
Headers
Name
Type
Description
Accept*
String
application/json
{
"comments": {
"current_page": 1,
"data": [
{
"id": 19,
"name": "John doe",
"email": "johndoe@gmail.com",
"comment": "Waiting for reviews price is OK !",
"approved": 1,
"pro_id": 39,
"created_at": "2022-01-17T05:31:21.000000Z",
"updated_at": "2022-01-17T05:31:21.000000Z",
"simple_pro_id": 0
}
],
"first_page_url": "http://emart.test/api/comments/39/v?page=1",
"from": 1,
"next_page_url": "http://emart.test/api/comments/39/v?page=2",
"path": "http://emart.test/api/comments/39/v",
"per_page": 1,
"prev_page_url": null,
"to": 1
},
"status": "success"
}
Last updated
Was this helpful?