ApiCategories
Retrieve all categories based on a specified language code
Access restricted to roles:
- admin
- manufacturer-admin
- manufacturer-user
- producer-admin
- producer-user
Authorization
bearer AuthorizationBearer <token>
In: header
Query Parameters
languageCode?unknown
The language code to filter category names
sortByLanguageCode?unknown
The language code whose translations should be used for sorting results
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://test.sweetconnect.io/api/storage/v1/categories"{
"data": [
{
"id": "AA",
"translations": [
{
"languageCode": "de",
"name": "Elektronik"
},
{
"languageCode": "en",
"name": "Electronics"
}
]
}
]
}{
"errors": [
{
"errorCode": "Unauthorized",
"message": "Authentication is required to access this resource.",
"extension": {}
}
]
}{
"errors": [
{
"errorCode": "NoPermission",
"message": "You do not have permission to access this resource.",
"extension": {}
}
]
}{
"errors": [
{
"errorCode": "InternalServerError",
"message": "An unexpected internal server error occurred.",
"extension": {}
}
]
}