# Get All Classes **GET /classes** Retrieves a paginated list of classes with optional filters and sorting. ## Servers - Local development server: http://localhost:8080/api (Local development server) - Production server: https://api.huy-devops.site/api (Production server) ## Authentication methods - Bearer auth ## Parameters ### Query parameters - **page** (integer) Page number (1-indexed) - **pageSize** (integer) Number of classes per page - **sort** (string) Sort field and direction (e.g., 'name-asc', 'createdAt-desc') - **search** (string) Search by class name - **isActive** (boolean) Filter by active status ## Responses ### 200 List of classes retrieved successfully #### Body: application/json (object) - **success** (boolean) - **code** (integer(int32)) - **message** (string) - **data** (array[object]) - **pagination** (object) ### 401 Unauthorized - Invalid or missing authentication token #### Body: application/json (object) - **success** (boolean) - **code** (integer) - **errorCode** (string) - **message** (string) - **timestamp** (string(date-time)) ### 500 Internal Server Error #### Body: application/json (object) - **success** (boolean) - **code** (integer) - **errorCode** (string) - **message** (string) - **timestamp** (string(date-time)) [Powered by Bump.sh](https://bump.sh)