6 endpoints.
| Method | Path | Summary |
|---|---|---|
GET | /api/blog-categories | List blog categories |
POST | /api/blog-categories | Create a blog category |
DELETE | /api/blog-categories/{id} | Delete a blog category |
GET | /api/blog-categories/{id} | Get category by ID |
PUT | /api/blog-categories/{id} | Update a blog category |
GET | /api/blog-categories/blog/{blogId} | Get categories for a blog |
GET /api/blog-categoriesAuth: Bearer JWT required.
Responses
| Status | Description | Body |
|---|---|---|
200 | List of categories | — |
POST /api/blog-categoriesAuth: Bearer JWT required.
Request body (required) — application/json
| Field | Type | Required | Description |
|---|---|---|---|
name | string | yes | — |
nameArabic | string | yes | — |
description | string | no | — |
descriptionArabic | string | no | — |
Responses
| Status | Description | Body |
|---|---|---|
201 | Category created successfully | — |
401 | Authentication required | — |
DELETE /api/blog-categories/{id}Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string (uuid) | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | Category deleted successfully | — |
401 | Authentication required | — |
GET /api/blog-categories/{id}Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string (uuid) | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | Category details | — |
404 | Category not found | — |
PUT /api/blog-categories/{id}Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string (uuid) | — |
Request body — application/json
| Field | Type | Required | Description |
|---|---|---|---|
name | string | no | — |
nameArabic | string | no | — |
description | string | no | — |
descriptionArabic | string | no | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | Category updated successfully | — |
401 | Authentication required | — |
GET /api/blog-categories/blog/{blogId}Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
blogId | path | yes | string (uuid) | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | List of blog categories | — |