API Endpoints
The backend provides the following endpoints for managing categories:Fetch Categories
- Endpoint:
GET /categories - Description: Retrieves the list of all categories.
- Response:
Create Category
- Endpoint:
POST /categories - Description: Creates a new category.
- Request Body:
Update Category
- Endpoint:
PUT /categories/{id} - Description: Updates an existing category.
- Request Body:
Delete Category
- Endpoint:
DELETE /categories/{id} - Description: Deletes a category and reassigns related blog posts.
Auto-Generated Categories from User Tags
- Users can assign tags to blog posts.
- If a tag matches an existing category, it is linked automatically.
- If a tag does not match any existing category, it is grouped under Other.
- Administrators can later create a proper category and reassign posts.

