Class CategoryAPI

java.lang.Object
com.glowmart.shop_management.api.CategoryAPI

public final class CategoryAPI extends Object
A utility class that contains constants for API endpoint paths related to category operations.

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 Details

    • BASE_PATH

      public static final String 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

      public static final String 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

      public static final String 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

      public static final String 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

      public static final String 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

      public static final String 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

      public static final String 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

      public static final String 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

      public static final String 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()