GET /api/categories/:id/acronyms
Gets the acronyms associated with a specific category
Bearer Authentication is required
- id : required (type:UUID)
JSON
- Bad Request (code:400) : this occur when a non v4 UUID was provided in the URI.
{
"error": true,
"reason": "Bad ID Format"
}- Not Found (code:404) : this occur when a non v4 UUID was provided in the URI.
{
"reason": "Not Found",
"error": true
}- Unauthorized (code:401) : this occurs when the provided JWT is not valid .
{
"error": true,
"reason": "Unauthorized"
}{
"reason": "exp claim verification failed: expired",
"error": true
}Request
curl --request GET \
--url http://127.0.0.1:8080/api/categories/4C908909-4898-47BE-9C92-D450D3EBEBAA/acronyms \
--header 'authorization: Bearer <JWT>'Return Body
[
{
"long": "Champions League",
"short": "CL",
"isPrivate": false,
"userID": "FF959FB3-973B-456C-B86E-B37E5F657DB2",
"id": "0EB76B15-8691-4208-B35D-9E92C4EDB451"
}
]Return Code
- 200