Class CategoryAPI
This class defines static final strings representing the paths for category-related API endpoints, such as listing categories, retrieving categories by specific attributes, creating new categories, updating existing ones, and deleting categories. These constants ensure consistency across the application and prevent hardcoding of endpoint paths.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe base path for all category-related API endpoints.static final StringThe path for retrieving categories by their creation date.static final StringThe path for retrieving a category by its unique identifier.static final StringThe path for retrieving a category by its name.static final StringThe path for retrieving categories by their last updated date.static final StringThe path for creating a new category.static final StringThe path for deleting a category.static final StringThe path for retrieving a list of all categories.static final StringThe path for updating an existing category. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
BASE_PATH
The base path for all category-related API endpoints.All category endpoints are prefixed with this value (e.g., "/api/category/list").
- See Also:
-
CATEGORY_LIST
The path for retrieving a list of all categories.This endpoint returns a collection of categories, typically in a paginated format.
- See Also:
-
CATEGORY_BY_ID
The path for retrieving a category by its unique identifier.This endpoint requires a category ID parameter to fetch the corresponding category.
- See Also:
-
CATEGORY_BY_NAME
The path for retrieving a category by its name.This endpoint allows searching for categories using their name.
- See Also:
-
CATEGORY_BY_CREATED_AT
The path for retrieving categories by their creation date.This endpoint filters categories based on when they were created.
- See Also:
-
CATEGORY_BY_UPDATED_AT
The path for retrieving categories by their last updated date.This endpoint filters categories based on their most recent update timestamp.
- See Also:
-
CATEGORY_CREATE
The path for creating a new category.This endpoint accepts category details in the request body and persists them.
- See Also:
-
CATEGORY_UPDATE
The path for updating an existing category.This endpoint requires the category ID as a path variable (e.g., "/api/category/update/5").
- See Also:
-
CATEGORY_DELETE
The path for deleting a category.This endpoint requires the category ID as a path variable (e.g., "/api/category/delete/5").
- See Also:
-
-
Constructor Details
-
CategoryAPI
public CategoryAPI()
-