Get All Categories
Retrieve a list of all categories with optional search filtering.GET
Endpoint: /categories
Query Parameters
Search term to filter categories by name
Response
Indicates if the request was successful
Array of category objects
Total number of categories
Response message
Create Category
Create a new category.POST
Endpoint: /categories
Request Body
Category name
Description of the category
Response
Indicates if the category was created successfully
Created category object
Success message
Update Category
Update an existing category’s information.PUT
Endpoint: /categories/{categoryId}
Path Parameters
Unique identifier of the category
Request Body
Updated category name
Updated description
Response
Indicates if the category was updated successfully
Updated category object
Success message
Delete Category
Delete a category from the system.DELETE
Endpoint: /categories/{categoryId}
Path Parameters
Unique identifier of the category to delete
Response
Indicates if the category was deleted successfully
ID of the deleted category
Success message
Get Category Statistics
Retrieve detailed statistics for a specific category.GET
Endpoint: /categories/{categoryId}/stats
Path Parameters
Unique identifier of the category
Response
Indicates if the request was successful
Category details
Category statistics including product counts, stock levels, and pricing information
Response message