Получить категорию
GET/v1/category
Получить категорию используя ID категории.
Request
Responses
- 200
- 400
- 401
- 403
- 500
Successful operation. Returns the updated category.
- application/json
- Schema
- Example (from schema)
Schema
id integerrequired
name stringrequired
status booleanrequired
countProducts integerrequired
{
"id": 0,
"name": "string",
"status": true,
"countProducts": 0
}
Bad request. Invalid input or missing required fields.
Unauthorized. User is not authenticated.
Forbidden. User does not have permission to update category status.
Internal server error.
Loading...