GET: Get Category
Endpoint:
GET http://api.blug.io/api/v1/blog/categories/:id/
Description
This request retrieves a single category.
Headers
- X-API-KEY:
{{API_KEY}}
Path Variables
- id — The unique identifier of the category.
Example:
fe7c3208-454a-sten-899e-018dd20e9247
Example Request
- cURL
curl --location 'http://api.blug.io/api/v1/blog/categories/fe7c3208-454a-sten-899e-018dd20e9247/'
Example Response
200 OK
- Body
- Headers
{
"uuid": "fe7c3208-454a-sten-899e-018dd20e9247",
"name": "Tech & Sports",
"description": null,
"cover_image": "https://imgflip.com/gif/931mkx",
"slug": "tech-sports",
"articles": []
}
{
"Content-Type": "application/json",
"Date": "Mon, 08 Jan 2025 14:00:00 GMT",
"Server": "WSGIServer/0.2 CPython/3.11.11",
"Vary": "Accept, origin",
"Allow": "GET, PUT, PATCH, DELETE, HEAD, OPTIONS",
"X-Frame-Options": "DENY",
"Content-Length": "1187",
"X-Content-Type-Options": "nosniff",
"Referrer-Policy": "same-origin",
"Cross-Origin-Opener-Policy": "same-origin",
}