contentCategoryIds (Array of Strings): An array of content category IDs to be deleted. Each ID should be a valid string that corresponds to an existing content category.
Response:
200 OK: Successfully deleted the specified content categories.
400 Bad Request: If the request body is malformed or the IDs provided do not correspond to any existing content categories.
500 Internal Server Error: If there is an error on the server side while processing the deletion.
PR Summary
Feature: Content Category Management
This pull request introduces several updates aimed at improving content management:
This PR significantly enhances the content management capabilities by supporting the creation, editing, and deletion of content categories.
API Documentation: Content Categories Endpoints
1. Delete Content Categories by ID
Endpoint:
POST /api/content-categories/deleteContentCategoriesById
Description: This endpoint deletes one or more content categories based on their IDs.
Request Body:
Parameters:
contentCategoryIds
(Array of Strings): An array of content category IDs to be deleted. Each ID should be a valid string that corresponds to an existing content category.Response:
2. Edit Content Category
Endpoint:
POST /api/content-categories/editContentCategory
Description: This endpoint allows you to edit an existing content category.
Request Body:
Parameters:
name
(String): The new name for the content category.description
(String): The new description for the content category.contentCategoryId
(String): The ID of the content category that you want to edit.Response:
contentCategoryId
does not correspond to any existing content category.3. Create Content Category
Endpoint:
POST /api/content-categories/createContentCategory
Description: This endpoint allows you to create a new content category.
Request Body:
Parameters:
name
(String): The name of the new content category.description
(String): The description of the new content category.Response: