for owner and author
GET /api/v1/categories/:id
Parameters
| Name |
Description |
|
id
|
id
|
|
name
|
Name
|
|
description
|
a description
|
Request
Headers
Route
GET /api/v1/categories/11?name=Name&description=test+headline
Query Parameters
name: Name
description: test headline
cURL
curl "http://localhost:3000/api/v1/categories/11?name=Name&description=test+headline" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: c4z7xbX2VzpRiGEcnfYcoA1duTS6s88uMw" \
-H "X-Api-Email: user-616@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"created_at": "2019-10-31T22:06:09Z",
"name": "Category Name 8",
"description": null,
"is_published": false,
"id": 11,
"meta": {
"class": "category",
"url": "/categories/11",
"name": "Category Name 8",
"description": null,
"image_url": null
}
}
Request
Headers
Route
GET /api/v1/categories/11?name=Name&description=test+headline
Query Parameters
name: Name
description: test headline
cURL
curl "http://localhost:3000/api/v1/categories/11?name=Name&description=test+headline" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: c4z7xbX2VzpRiGEcnfYcoA1duTS6s88uMw" \
-H "X-Api-Email: user-616@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"created_at": "2019-10-31T22:06:09Z",
"name": "Category Name 8",
"description": null,
"is_published": false,
"id": 11,
"meta": {
"class": "category",
"url": "/categories/11",
"name": "Category Name 8",
"description": null,
"image_url": null
}
}