/
IvanPavlov
/
sber_ku_integration
Обзор
Документация
Войти
/
IvanPavlov
/
sber_ku_integration
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/admin_user.json
97 строк
2 KB
vitalykutsenko
Пример 1 на занятие по GraphQL
04 авг 2025, 15:52
04 авг 2025, 15:52
14dd793
Код
Авторство
О чём код?
{ "openapi": "3.1.0", "info": { "title": "OpenAPI definition", "version": "v0" }, "servers": [ { "url": "http://localhost:8080", "description": "Generated server url" } ], "paths": { "/admin/users": { "get": { "tags": [ "admin-users-controller" ], "summary": "Получение списка пользователей", "operationId": "list", "responses": { "401": { "description": "Не аутентифицирован", "content": { "*/*": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/User" } } } } }, "200": { "description": "Успешный ответ", "content": { "*/*": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/User" } } } } } } } } }, "components": { "schemas": { "User": { "type": "object", "properties": { "id": { "type": "integer", "format": "int64", "default": "null", "description": "Идентификатор" }, "firstName": { "type": "string", "default": "Тестов", "description": "Фамилия" }, "lastName": { "type": "string", "default": "Тест", "description": "Имя" }, "active": { "type": "boolean", "default": "false", "description": "Признак активности" }, "birthDate": { "type": "string", "format": "date", "description": "Дата рождения" }, "login": { "type": "string", "default": "username", "description": "Имя пользователя" }, "password": { "type": "string", "default": "password", "description": "Пароль пользователя" } } } } } }