should return a collection of comments
GET /api/v1/comments
Parameters
| Name |
Description |
|
attachable_id
|
id
|
Request
Headers
Route
GET /api/v1/comments?commentable_id=9
Query Parameters
commentable_id: 9
cURL
curl "http://localhost:3000/api/v1/comments?commentable_id=9" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: " \
-H "X-Api-Email: " \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"comments": [
],
"meta": {
"total": 0,
"page": 1,
"from": 0,
"to": 0,
"per": 25,
"number_of_pages": 1,
"query": {
"commentable_id": "9",
"school_id": 97
}
}
}