List the category catalogue
Any signed in user. Returns every category with the number of medicines filed under it. The count comes from a live join, so an empty category reports zero, not a dropped row.
GET
/api/v1/categoriesAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Responses
200
The category catalogue with usage counts
itemsobject[]requiredShow propertiesHide properties
Array of
objectslugstringrequirednamestringrequiredmedicine_countintegerrequiredmin -9007199254740991 · max 9007199254740991
totalintegerrequiredmin -9007199254740991 · max 9007199254740991
401
Not authenticated
detailstringrequired