Update API documentation for role selection endpoint to clarify response structure
- Modified the response description for the `/api/support/roles` GET endpoint to specify that the returned `RoleDto[]` excludes both the current user's role and admin roles, enhancing clarity for developers using the API.
This commit is contained in:
+1
-1
@@ -155,7 +155,7 @@ status, createdAt }`. `expiresAt` всегда `null` (лимиты по сро
|
|||||||
|
|
||||||
| Метод | Путь | Тело запроса | Тело ответа |
|
| Метод | Путь | Тело запроса | Тело ответа |
|
||||||
| ----- | ----------------------------------------- | ---------------------------------------------------------------------------- | ------------- |
|
| ----- | ----------------------------------------- | ---------------------------------------------------------------------------- | ------------- |
|
||||||
| GET | `/api/support/roles` | — | `RoleDto[]` (без `admin`) — для выбора существующей роли в заявке |
|
| GET | `/api/support/roles` | — | `RoleDto[]` (без `admin` и без текущей роли пользователя) — для выбора существующей роли в заявке |
|
||||||
| GET | `/api/support/tickets` | query: `type?, status?, page=1, pageSize=20` | `PagedList<TicketSummaryDto>` (только свои) |
|
| GET | `/api/support/tickets` | query: `type?, status?, page=1, pageSize=20` | `PagedList<TicketSummaryDto>` (только свои) |
|
||||||
| GET | `/api/support/tickets/{id}` | — | `TicketDetailDto` (404, если не свой) |
|
| GET | `/api/support/tickets/{id}` | — | `TicketDetailDto` (404, если не свой) |
|
||||||
| POST | `/api/support/tickets/bug-reports` | multipart: `message` + `files[]` (до 5, изображения до 5 МБ) | `TicketDetailDto` |
|
| POST | `/api/support/tickets/bug-reports` | multipart: `message` + `files[]` (до 5, изображения до 5 МБ) | `TicketDetailDto` |
|
||||||
|
|||||||
Reference in New Issue
Block a user