Name | Type | Read-only | Mandatory | Comment |
|---|---|---|---|---|
| id | integer | yes | no | |
| name | string | no | yes | |
| active | boolean | no | no | |
| categoryOptionIds | array | no | no | array of CategoryOption.id |
| groupId | array | no | yes | Group.id |
Uri | Method | Request Data | Success Response Code | Description |
|---|---|---|---|---|
| /api/categories | GET | 200 | Returns an Array of all Categories | |
| /api/categories/{id} | GET | 200 | Returns one Category | |
| /api/categories | POST | Category | 201 | Create new Category |
| /api/categories/{id} | PUT | Category | 204 | Update an existing Category |
| /api/categories/{id} | DELETE | 200 | Delete a Category |