Get All Brands
Retrieve a list of all brands with optional filtering and pagination.GET
Endpoint: /brands
Query Parameters
Search term to filter brands by name
Page number for pagination
Number of brands per page
Response
Indicates if the request was successful
Array of brand objects
Total number of brands
Response message
Create Brand
Create a new brand.POST
Endpoint: /brands
Request Body
Brand name (max 100 characters)
Description of the brand (max 500 characters)
Response
Indicates if the brand was created successfully
Created brand object
Success message
Update Brand
Update an existing brand’s information.PUT
Endpoint: /brands/{brandId}
Path Parameters
Unique identifier of the brand
Request Body
Updated brand name (max 100 characters)
Updated description (max 500 characters)
Response
Indicates if the brand was updated successfully
Updated brand object
Success message
Delete Brand
Delete a brand from the system.DELETE
Endpoint: /brands/{brandId}
Path Parameters
Unique identifier of the brand to delete
Response
Indicates if the brand was deleted successfully
ID of the deleted brand
Success message
Get Brand Statistics
Retrieve detailed statistics for a specific brand.GET
Endpoint: /brands/{brandId}/stats
Path Parameters
Unique identifier of the brand
Response
Indicates if the request was successful
Brand details
Brand statistics
Response message