Загрузка данных
{
"openapi": "3.1.0",
"swagger": null,
"info": {
"title": "track",
"description": "Система",
"license": {
"name": "Apache 2.0",
"url": "http://springdoc.org"
},
"version": "34.5.1"
},
"paths": {
"/rest/api/unit/v2/{suit}/create": {
"post": {
"operationId": "create_4",
"summary": "Создает новую задачу с заданным типом атрибута",
"tags": [
"API создания/изменения задачи (v2)"
],
"parameters": [
{
"name": "suit",
"in": "path",
"required": true,
"schema": {
"type": "string"
},
"description": "Код типа задачи"
}
],
"requestBody": {
"description": "Создание задачи",
"content": {
"application/json": {
"schema": {
"type": "string",
"additionalProperties": false,
"description": "Запрос на создание задачи"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Успешное изменение объекта",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateResponse",
"additionalProperties": false,
"description": "Успешное изменение объекта",
"required": [
"id"
]
}
}
}
},
"201": {
"description": "Успешное изменение объекта",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateResponse",
"additionalProperties": false,
"description": "Успешное изменение объекта",
"required": [
"id"
]
}
}
}
},
"204": {
"description": "Успешное удаление объекта",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateResponse",
"additionalProperties": false,
"description": "Успешное удаление объекта",
"required": [
"id"
]
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
]
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
]
}
}
}
}
}
}
},
"/rest/api/unit/v1/{suit}/create": {
"post": {
"operationId": "create_5",
"summary": "Создает новую задачу с заданным типом атрибута",
"tags": [
"API создания/изменения задачи"
],
"parameters": [
{
"name": "suit",
"in": "path",
"required": true,
"schema": {
"type": "string"
},
"description": "Код типа задачи"
}
],
"requestBody": {
"description": "Создание задачи",
"content": {
"application/json": {
"schema": {
"type": "string",
"additionalProperties": false,
"description": "Запрос на создание задачи"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateResponse"
}
}
}
}
}
}
},
"/rest/api/unit/v2/update/{code}": {
"patch": {
"operationId": "update_9",
"summary": "Обновляет существующую задачу по его коду",
"tags": [
"API создания/изменения задачи (v2)"
],
"parameters": [
{
"name": "code",
"in": "path",
"required": true,
"schema": {
"type": "string"
},
"description": "Код задачи"
}
],
"requestBody": {
"description": "Изменение задачи",
"content": {
"application/json": {
"schema": {
"type": "string",
"additionalProperties": false,
"description": "Запрос на изменение задачи"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Успешное изменение объекта",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateResponse",
"additionalProperties": false,
"description": "Успешное изменение объекта",
"required": [
"id"
]
}
}
}
},
"201": {
"description": "Успешное изменение объекта",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateResponse",
"additionalProperties": false,
"description": "Успешное изменение объекта",
"required": [
"id"
]
}
}
}
},
"204": {
"description": "Успешное удаление объекта",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateResponse",
"additionalProperties": false,
"description": "Успешное удаление объекта",
"required": [
"id"
]
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
]
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
]
}
}
}
}
}
}
},
"/rest/api/unit/v1/update/{code}": {
"patch": {
"operationId": "update_11",
"summary": "Обновляет существующую задачу по ее коду",
"description": "Обновляет существующую задачу по ее коду",
"tags": [
"API создания/изменения задачи"
],
"parameters": [
{
"name": "code",
"in": "path",
"required": true,
"schema": {
"type": "string",
"description": "Код задачи"
},
"description": "Код задачи"
}
],
"requestBody": {
"description": "Запрос на обновление задачи",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"description": "Запрос на обновление задачи",
"required": [
"assigned_to",
"description",
"due_date",
"label",
"suit",
"summary",
"workflow_status"
]
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Идентификатор обновленной задачи",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateResponse",
"additionalProperties": false,
"description": "Идентификатор обновленной задачи",
"required": [
"id"
]
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
]
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
]
}
}
}
}
}
}
},
"/rest/api/unit/v2/{code}": {
"get": {
"operationId": "get_4",
"summary": "Получение юнита с атрибутами по его коду",
"tags": [
"API поиска юнита V3 с отдельным запросом полного кол-ва записей",
"API поиска юнита"
],
"parameters": [
{
"name": "code",
"in": "path",
"required": true,
"schema": {
"type": "string"
},
"description": "code"
},
{
"name": "validatorEnabled",
"in": "query",
"required": false,
"schema": {
"type": "boolean"
},
"description": "validatorEnabled"
}
],
"responses": {
"200": {
"description": "Информация о юните",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UnitWithAttributes",
"additionalProperties": false,
"description": "Информация о юните",
"required": [
"code",
"space",
"suit"
]
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
]
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
]
}
}
}
}
}
}
},
"/rest/api/unit/v1/{code}": {
"get": {
"operationId": "get_6",
"summary": "Получение юнита с атрибутами по его коду",
"tags": [
"API поиска юнита"
],
"parameters": [
{
"name": "code",
"in": "path",
"required": true,
"schema": {
"type": "string"
},
"description": "code"
},
{
"name": "validatorEnabled",
"in": "query",
"required": false,
"schema": {
"type": "boolean"
},
"description": "validatorEnabled"
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UnitInSuitWithAttributes"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"ErrorDTO": {
"type": "object",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"properties": {
"exceptionUUID": {
"type": "string",
"description": "Exception uuid"
},
"errorDtoObject": {
"type": "object",
"format": "Object",
"additionalProperties": false,
"description": "Exception uuid"
},
"errorType": {
"type": "string",
"description": "Error type"
},
"stackTrace": {
"type": "string",
"description": "Stack Trace"
},
"uiErrorMessage": {
"type": "string",
"description": "Error message"
}
},
"required": [
"exceptionUUID",
"uiErrorMessage"
]
},
"UnitInSuitWithAttributes": {
"type": "object",
"additionalProperties": false,
"description": "Юнит с типом и атрибутами",
"properties": {
"summary": {
"type": "string",
"description": "Краткое описание"
},
"code": {
"type": "string",
"description": "Код юнита"
},
"updatedBy": {
"$ref": "#/components/schemas/UserInfoWithDetails",
"description": "Автор обновления"
},
"allowedActions": {
"type": "array",
"description": "Список доступных действий",
"items": {
"$ref": "#/components/schemas/AllowedAction",
"additionalProperties": false,
"description": "Доступные действия"
}
},
"description": {
"type": "string",
"description": "Описание"
},
"space": {
"$ref": "#/components/schemas/SpaceInUnitInfo",
"description": "Пространство"
},
"createdAt": {
"type": "string",
"format": "date-time",
"description": "Дата создания"
},
"validatorErrorMsgs": {
"type": "array",
"description": "Список ошибок валидации",
"items": {
"$ref": "#/components/schemas/ValidatorErrorDto",
"additionalProperties": false,
"description": "Ошибка валидации"
}
},
"createdBy": {
"$ref": "#/components/schemas/UserInfoWithDetails",
"description": "Автор"
},
"spaces": {
"type": "array",
"description": "Список пространств",
"items": {
"$ref": "#/components/schemas/SpaceInUnitInfo",
"additionalProperties": false,
"description": "Список пространств"
}
},
"attributes": {
"type": "array",
"description": "Информация о значении кода атрибута юнита",
"items": {
"$ref": "#/components/schemas/UnitAttributeCodeValueInfo",
"additionalProperties": false,
"description": "Информация о значении кода атрибута юнита"
}
},
"suit": {
"$ref": "#/components/schemas/SuitInUnitInfo",
"description": "Тип задачи"
},
"isFavorite": {
"type": "boolean",
"description": "Флаг: предпочтительный"
},
"updatedAt": {
"type": "string",
"format": "date-time",
"description": "Дата обновления"
}
},
"required": [
"code",
"space"
]
},
"AllowedAction": {
"type": "object",
"additionalProperties": false,
"description": "Разрешенное действие",
"properties": {
"name": {
"type": "string",
"description": "Наименование разрешения"
}
},
"required": [
"name"
]
},
"SpaceInUnitInfo": {
"type": "object",
"additionalProperties": false,
"description": "Информация о пространстве",
"properties": {
"code": {
"type": "string",
"description": "Код пространства"
},
"name": {
"type": "string",
"description": "Название пространства"
}
},
"required": [
"code",
"name"
]
},
"SuitInUnitInfo": {
"type": "object",
"additionalProperties": false,
"description": "Тип задачи",
"properties": {
"code": {
"type": "string",
"description": "Код типа задачи"
},
"name": {
"type": "string",
"description": "Название типа задачи"
},
"icon": {
"type": "string",
"description": "Иконка типа задачи"
}
},
"required": [
"code",
"name"
]
},
"UnitAttributeCodeValueInfo": {
"type": "object",
"additionalProperties": false,
"description": "Информация о значении кода атрибута юнита",
"properties": {
"code": {
"type": "string",
"description": "Код"
},
"valueAsString": {
"type": "string",
"description": "Значение в виде строки"
},
"name": {
"type": "string",
"description": "Название"
},
"type": {
"type": "string",
"description": "Тип"
},
"value": {
"type": "object",
"additionalProperties": false,
"description": "Объект значения"
},
"parameters": {
"type": "object",
"additionalProperties": {
"type": "object",
"description": "Параметры атрибута юнита"
},
"description": "Параметры атрибута юнита",
"properties": {
"empty": {
"type": "boolean"
}
}
}
}
},
"UnitWithAttributes": {
"type": "object",
"additionalProperties": false,
"description": "UnitWithAttributes",
"properties": {
"summary": {
"type": "string",
"description": "summary"
},
"createdAt": {
"type": "string",
"format": "date-time",
"description": "createdAt"
},
"code": {
"type": "string",
"description": "code"
},
"updatedBy": {
"$ref": "#/components/schemas/UserInfoWithDetails",
"description": "updatedBy"
},
"validatorErrorMsgs": {
"type": "array",
"description": "validatorErrorMsgs",
"items": {
"$ref": "#/components/schemas/ValidatorErrorDto"
}
},
"createdBy": {
"$ref": "#/components/schemas/UserInfoWithDetails",
"description": "createdBy"
},
"description": {
"type": "string",
"description": "description"
},
"attributes": {
"type": "array",
"description": "attributes",
"items": {
"$ref": "#/components/schemas/UnitAttributeCodeValueInfo"
}
},
"suit": {
"$ref": "#/components/schemas/SuitInUnitInfo",
"description": "suit"
},
"space": {
"$ref": "#/components/schemas/SpaceInUnitInfo",
"description": "space"
},
"isFavorite": {
"type": "boolean",
"description": "isFavorite"
},
"updatedAt": {
"type": "string",
"format": "date-time",
"description": "updatedAt"
}
},
"required": [
"code",
"space"
]
},
"UpdateResponse": {
"type": "object",
"additionalProperties": false,
"description": "Структура ответа в случае успеха",
"properties": {
"id": {
"type": "string",
"description": "Идентификатор объекта"
}
},
"required": [
"id"
]
},
"UserInfoWithDetails": {
"type": "object",
"additionalProperties": false,
"description": "Автор шаблона",
"properties": {
"firstName": {
"type": "string",
"description": "Имя пользователя"
},
"lastName": {
"type": "string",
"description": "Фамилия пользователя"
},
"externalId": {
"type": "string",
"description": "Внешний ИД пользователя"
},
"middleName": {
"type": "string",
"description": "Отчество пользователя"
},
"login": {
"type": "string",
"description": "Логин"
},
"userDetails": {
"type": "array",
"description": "Информация о пользователях",
"items": {
"$ref": "#/components/schemas/UserDetailDto",
"additionalProperties": false,
"description": "Дополнительная информация о пользователе",
"required": [
"type",
"vale"
]
}
}
},
"required": [
"externalId",
"firstName",
"lastName",
"login",
"middleName"
]
},
"UserDetailDto": {
"type": "object",
"additionalProperties": false,
"description": "Дополнительная информация о пользователе",
"properties": {
"type": {
"$ref": "#/components/schemas/UserDetailTypeDto",
"additionalProperties": false,
"description": "Тип дополнительной информации",
"required": [
"code",
"name",
"properties",
"visible"
]
},
"value": {
"type": "string",
"description": "Значение дополнительной информации"
}
},
"required": [
"type",
"value"
]
},
"UserDetailTypeDto": {
"type": "object",
"additionalProperties": false,
"description": "Тип дополнительной информации о пользователе",
"properties": {
"code": {
"type": "string",
"description": "Код типа"
},
"visible": {
"type": "boolean",
"description": "Признак отображения"
},
"name": {
"type": "string",
"description": "Наименование типа"
},
"properties": {
"type": "object",
"additionalProperties": false,
"description": "Свойства типа",
"required": [
"key",
"value"
]
}
},
"required": [
"code",
"name",
"properties",
"visible"
]
},
"ValidatorErrorDto": {
"type": "object",
"additionalProperties": false,
"description": "Сущности для дополнительной информации фронту, для отображения полноценно ошибок",
"properties": {
"result": {
"type": "boolean",
"description": "Результат"
},
"validator": {
"$ref": "#/components/schemas/Validator",
"description": "Валидатор"
},
"errorsByAttribute": {
"type": "array",
"description": "Список ошибок валидации по атрибутам",
"items": {
"$ref": "#/components/schemas/ValidatorErrorByAttributeDto",
"additionalProperties": false,
"description": "Ошибка валидации по атрибуту"
}
}
}
},
"Validator": {
"type": "object",
"additionalProperties": false,
"description": "Validator",
"properties": {
"condition": {
"type": "string",
"description": "Состояние валидатора"
},
"name": {
"type": "string",
"description": "Название валидатора"
},
"description": {
"type": "string",
"description": "Описание валидатора"
},
"type": {
"type": "string",
"description": "Тип валидатора"
}
}
},
"ValidatorErrorByAttributeDto": {
"type": "object",
"additionalProperties": false,
"description": "Ошибка валидации по атрибуту",
"properties": {
"attributeName": {
"type": "string",
"description": "Название атрибута"
},
"errorMsg": {
"type": "string",
"description": "Сообщение об ошибке"
}
}
}
}
},
"definitions": {},
"_extract_info": {
"purpose": "Minimal Sprint 46 TaskTracker assigned_to update schema extract",
"selected_path_count": 6,
"selected_paths": {
"/rest/api/unit/v2/{suit}/create": [
"unit_create_context"
],
"/rest/api/unit/v1/{suit}/create": [
"unit_create_context"
],
"/rest/api/unit/v2/update/{code}": [
"unit_update_path",
"assignment_update_text"
],
"/rest/api/unit/v1/update/{code}": [
"unit_update_path",
"assignment_update_text"
],
"/rest/api/unit/v2/{code}": [
"unit_read_context",
"assignment_update_text"
],
"/rest/api/unit/v1/{code}": [
"unit_read_context"
]
},
"schema_ref_count": 14,
"note": "Examples and unrelated paths are removed. Descriptions are compacted. Schema refs are followed from selected paths only."
}
}