Endpoint
GET
/api/category
This endpoint does not require authentication. It is publicly accessible.
Response
Returns a JSON object containing all categories in the system.HTTP status code (200 for success)
Response status (‘success’)
Example Request
cURL
Example Response
Success Response (200)
Implementation Details
This endpoint is defined inCategoryController.php:20 and uses Laravel’s Eloquent ORM to retrieve all categories from the database without pagination.