On this page

6 endpoints.

MethodPathSummary
GET/api/blog-categoriesList blog categories
POST/api/blog-categoriesCreate 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

Auth: Bearer JWT required.

Responses

StatusDescriptionBody
200List of categories—

Auth: Bearer JWT required.

Request body (required) — application/json

FieldTypeRequiredDescription
namestringyes—
nameArabicstringyes—
descriptionstringno—
descriptionArabicstringno—

Responses

StatusDescriptionBody
201Category created successfully—
401Authentication required—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
idpathyesstring (uuid)—

Responses

StatusDescriptionBody
200Category deleted successfully—
401Authentication required—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
idpathyesstring (uuid)—

Responses

StatusDescriptionBody
200Category details—
404Category not found—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
idpathyesstring (uuid)—

Request body — application/json

FieldTypeRequiredDescription
namestringno—
nameArabicstringno—
descriptionstringno—
descriptionArabicstringno—

Responses

StatusDescriptionBody
200Category updated successfully—
401Authentication required—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
blogIdpathyesstring (uuid)—

Responses

StatusDescriptionBody
200List of blog categories—