Загрузка данных
"paths": {
"/rest/api/unit/v2/{suit}/create": {
"description": "Создает новую задачу с заданным типом атрибута",
"post": {
"tags": [
"API создания/изменения задачи (v2)"
],
"summary": "Создает новую задачу с заданным типом атрибута",
"operationId": "create_4",
"parameters": [
{
"name": "suit",
"in": "path",
"description": "Код типа задачи",
"required": true,
"schema": {
"type": "string",
"example": "Пример",
"maxLength": 2147483647,
"pattern": ".*"
},
"example": "task"
}
],
"requestBody": {
"description": "Создание задачи",
"content": {
"application/json": {
"schema": {
"type": "string",
"additionalProperties": false,
"description": "Запрос на создание задачи",
"example": "Пример",
"maxLength": 2147483647,
"pattern": ".*"
},
"examples": {
"Пример": {
"description": "Пример",
"value": {
"summary": "Новая задача",
"description": "Новая задача",
"space": "SWTR",
"attributes": {
"priority": "mid",
"workflow_status": {
"command": "NEW"
}
}
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Успешное изменение объекта",
"headers": {
"Location": {
"description": "URL для получения объекта",
"style": "simple",
"schema": {
"type": "string",
"format": "uri"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateResponse",
"additionalProperties": false,
"description": "Успешное изменение объекта",
"example": {
"id": "ANYSPC"
},
"required": [
"id"
]
},
"examples": {
"success": {
"description": "Успешное изменение объекта с кодом ANYSPC",
"value": {
"id": "ANYSPC"
}
}
}
}
}
},
"201": {
"description": "Успешное изменение объекта",
"headers": {
"Location": {
"description": "URL для получения объекта",
"style": "simple",
"schema": {
"type": "string",
"format": "uri"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateResponse",
"additionalProperties": false,
"description": "Успешное изменение объекта",
"example": {
"id": "ANYSPC"
},
"required": [
"id"
]
},
"examples": {
"success": {
"description": "Успешное изменение объекта с кодом ANYSPC",
"value": {
"id": "ANYSPC"
}
}
}
}
}
},
"204": {
"description": "Успешное удаление объекта",
"headers": {
"Location": {
"description": "URL для получения объекта",
"style": "simple",
"schema": {
"type": "string",
"format": "uri"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateResponse",
"additionalProperties": false,
"description": "Успешное удаление объекта",
"example": {
"id": "ANYSPC"
},
"required": [
"id"
]
},
"examples": {
"success": {
"description": "Успешное удаление объекта с кодом ANYSPC",
"value": {
"id": "ANYSPC"
}
}
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка запроса",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "-"
}
}
}
}
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка доступа",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Доступ запрещен. Проверьте наличие необходимых прав"
}
}
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"not_found": {
"description": "Элемент не найден",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Элемент 'AnyObj' с идентификатором 'ANY' не найден "
}
}
}
}
}
},
"500": {
"description": "Server error",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"server_error": {
"description": "Неизвестная серверная ошибка",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Неизвестная ошибка"
}
}
}
}
}
}
}
}
},
"/rest/api/unit/v2/link/types": {
"description": "Получение типов связей между юнитами",
"post": {
"tags": [
"API поиска типов связей между юнитами @TT0"
],
"summary": "Получение типов связей между юнитами",
"operationId": "find_2",
"requestBody": {
"description": "Постраничный запрос на поиск типов связей",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LinkTypePageRq",
"additionalProperties": false,
"description": "Запрос на получение постраничного списка типов связей",
"example": null
},
"examples": {
"simple": {
"description": "Запрос первой страницы с 100 типами связей",
"value": {
"filters": {
"textSearch": "Деко"
},
"page": {
"page": 0,
"size": 100
}
}
}
}
}
},
"required": false
},
"responses": {
"200": {
"description": "Запрос на поиск типов связей",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PageDtoRs",
"additionalProperties": false,
"description": "Информация о типе связи",
"required": [
"content",
"hasNext",
"pageNumber",
"pageSize",
"totalElements"
],
"example": null
},
"examples": {
"success": {
"description": "Информация по типу связи",
"value": {
"content": [
{
"code": "decomposition",
"name": "Декомпозиция",
"description": "Выстраивание наследования при декомпозиции",
"source": {
"name": "Является частью",
"description": "Этот вид связи устанавливает выбранный элемент в качестве родительского по отношению к текущему. Родительский элемент может быть только один"
},
"destination": {
"name": "Состоит из",
"description": "Этот вид связи устанавливает выбранный элемент в качестве дочернего по отношению к текущему. Дочерних элементов может быть больше одного"
},
"relationship": "HIERARCHY",
"deleted": false
}
],
"pageSize": 100,
"hasNext": false,
"pageNumber": 0,
"totalElements": 1
}
}
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка запроса",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "-"
}
}
}
}
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка доступа",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Доступ запрещен. Проверьте наличие необходимых прав"
}
}
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"not_found": {
"description": "Элемент не найден",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Элемент 'AnyObj' с идентификатором 'ANY' не найден "
}
}
}
}
}
},
"500": {
"description": "Server error",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"server_error": {
"description": "Неизвестная серверная ошибка",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Неизвестная ошибка"
}
}
}
}
}
}
}
}
},
"/rest/api/unit/v1/link": {
"description": "Поиск связи по ее коду",
"get": {
"tags": [
"API поиска связей между юнитами"
],
"summary": "Поиск связи по ее коду",
"operationId": "get_1",
"parameters": [
{
"name": "source",
"in": "query",
"description": "Код юнита - источника",
"required": true,
"schema": {
"type": "string",
"example": "Пример",
"maxLength": 2147483647,
"pattern": ".*"
},
"example": "SWTR-1"
},
{
"name": "destination",
"in": "query",
"description": "Код юнита - назначения",
"required": true,
"schema": {
"type": "string",
"example": "Пример",
"maxLength": 2147483647,
"pattern": ".*"
},
"example": "SWTR-2"
},
{
"name": "type",
"in": "query",
"description": "Тип связи",
"required": true,
"schema": {
"type": "string",
"example": "Пример",
"maxLength": 2147483647,
"pattern": ".*"
},
"example": "decomposition"
}
],
"responses": {
"200": {
"description": "Запрос на поиск связи по коду",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UnitLinkInfo",
"additionalProperties": false,
"description": "Информация о связи юнита",
"required": [
"destination",
"pageNumber",
"source",
"type"
],
"example": null
},
"examples": {
"success": {
"description": "Информация по связи юнита",
"value": {
"source": "SWTR-1",
"destination": "SWTR-2",
"type": "decomposition",
"deleted": false
}
}
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка запроса",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "-"
}
}
}
}
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка доступа",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Доступ запрещен. Проверьте наличие необходимых прав"
}
}
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"not_found": {
"description": "Элемент не найден",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Элемент 'AnyObj' с идентификатором 'ANY' не найден "
}
}
}
}
}
},
"500": {
"description": "Server error",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"server_error": {
"description": "Неизвестная серверная ошибка",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Неизвестная ошибка"
}
}
}
}
}
}
}
},
"post": {
"tags": [
"API создания/изменения связей юнитов"
],
"summary": "Создание связи между юнитами",
"operationId": "link",
"requestBody": {
"description": "Запрос на создание связи юнита",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UnitLinkRq",
"additionalProperties": false,
"description": "Запрос на создание связи юнита",
"example": null
},
"examples": {
"simple": {
"description": "Создание связи",
"value": " {\n \"source\": \"SWTR-1\",\n \"destination\": \"SWTR-2\",\n \"type\": \"decomposition\",\n }\n"
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Запрос на создание связи",
"content": {
"application/json": {
"schema": {
"type": "boolean",
"additionalProperties": false,
"description": "Информация об успешности создания связи юнита",
"example": false,
"maxLength": 2147483647,
"pattern": ".*"
},
"examples": {
"success": {
"description": "Информация об успешности создания связи юнита",
"value": true
}
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка запроса",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "-"
}
}
}
}
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка доступа",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Доступ запрещен. Проверьте наличие необходимых прав"
}
}
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"not_found": {
"description": "Элемент не найден",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Элемент 'AnyObj' с идентификатором 'ANY' не найден "
}
}
}
}
}
},
"500": {
"description": "Server error",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"server_error": {
"description": "Неизвестная серверная ошибка",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Неизвестная ошибка"
}
}
}
}
}
}
}
}
},
"/rest/api/unit/v1/link/types": {
"description": "Получение типов связей между юнитами",
"post": {
"tags": [
"API поиска типов связей между юнитами"
],
"summary": "Получение типов связей между юнитами",
"operationId": "find_4",
"requestBody": {
"description": "Постраничный запрос на поиск типов связей",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LinkTypePageRq",
"additionalProperties": false,
"description": "Запрос на получение постраничного списка типов связей",
"example": null
},
"examples": {
"simple": {
"description": "Запрос первой страницы с 100 типами связей",
"value": {
"filters": {
"textSearch": "Деко"
},
"page": {
"page": 0,
"size": 100
}
}
}
}
}
},
"required": false
},
"responses": {
"200": {
"description": "Запрос на поиск типов связей",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PageDtoRs",
"additionalProperties": false,
"description": "Информация о типе связи",
"required": [
"content",
"hasNext",
"pageNumber",
"pageSize",
"totalElements"
],
"example": null
},
"examples": {
"success": {
"description": "Информация по типу связи",
"value": {
"content": [
{
"code": "decomposition",
"name": "Декомпозиция",
"description": "Выстраивание наследования при декомпозиции",
"sourceText": "Является частью",
"sourceDescription": "Этот вид связи устанавливает выбранный элемент в качестве родительского по отношению к текущему. Родительский элемент может быть только один",
"destinationText": "Состоит из",
"destinationDescription": "Этот вид связи устанавливает выбранный элемент в качестве дочернего по отношению к текущему. Дочерних элементов может быть больше одного",
"relationship": "HIERARCHY",
"deleted": false
}
],
"pageSize": 100,
"hasNext": false,
"pageNumber": 0,
"totalElements": 1
}
}
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка запроса",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "-"
}
}
}
}
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка доступа",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Доступ запрещен. Проверьте наличие необходимых прав"
}
}
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"not_found": {
"description": "Элемент не найден",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Элемент 'AnyObj' с идентификатором 'ANY' не найден "
}
}
}
}
}
},
"500": {
"description": "Server error",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"server_error": {
"description": "Неизвестная серверная ошибка",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Неизвестная ошибка"
}
}
}
}
}
}
},
"deprecated": true
}
},
"/rest/api/unit/v1/link/type/create": {
"description": "Создание типа связи между юнитами",
"post": {
"tags": [
"API создания/изменения типов связей юнитов"
],
"summary": "Создание типа связи между юнитами",
"operationId": "create_6",
"requestBody": {
"description": "Запрос на создание типа связи",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateUnitLinkTypeRq",
"additionalProperties": false,
"description": "Запрос на создание типа связи",
"example": null
},
"examples": {
"simple": {
"description": "Запрос на создание типа связи clone",
"value": {
"code": "clone",
"name": "Клон",
"description": "Клонирование",
"source": {
"name": "Клонирует",
"description": "Оригинал юнита"
},
"destination": {
"name": "Склонирован",
"description": "Клон юнита"
},
"relationship": "FLAT"
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Запрос на создание типа связи",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateResponse",
"additionalProperties": false,
"description": "Информация о созданном типе связи",
"required": [
"id"
],
"example": null
},
"examples": {
"success": {
"description": "Информация по созданному типу связи",
"value": {
"id": "SWTRTST"
}
}
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка запроса",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "-"
}
}
}
}
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка доступа",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Доступ запрещен. Проверьте наличие необходимых прав"
}
}
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"not_found": {
"description": "Элемент не найден",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Элемент 'AnyObj' с идентификатором 'ANY' не найден "
}
}
}
}
}
},
"500": {
"description": "Server error",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"server_error": {
"description": "Неизвестная серверная ошибка",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Неизвестная ошибка"
}
}
}
}
}
}
}
}
},
"/rest/api/unit/v1/link/find": {
"description": "Поиск связей между юнитам",
"post": {
"tags": [
"API поиска связей между юнитами"
],
"summary": "Поиск связей между юнитам",
"operationId": "find_5",
"requestBody": {
"description": "Постраничный запрос на поиск связи юнита",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UnitLinkSearchRq",
"additionalProperties": false,
"description": "Запрос на получение постраничного списка связей юнита",
"example": null
},
"examples": {
"simple": {
"description": "Запрос первой страницы с 10 связями",
"value": {
"unitId": "SWTR-1",
"direction": "source",
"type": [
"decomposition"
],
"page": {
"page": {
"page": 0,
"size": 10
}
}
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Запрос на постраничный поиск связей юнита по его коду",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PageDtoRs",
"additionalProperties": false,
"description": "Постраничный вывод результатов поиска связей юнита",
"required": [
"content",
"hasNext",
"pageNumber",
"pageSize",
"totalElements"
],
"example": null
},
"examples": {
"success": {
"description": "Информация по связи юнита",
"value": {
"content": [
{
"source": "SWTR-1",
"destination": "SWTR-2",
"type": "decomposition",
"deleted": false
},
{
"source": "SWTR-1",
"destination": "SWTR-3",
"type": "decomposition",
"deleted": false
},
{
"source": "SWTR-1",
"destination": "SWTR-4",
"type": "decomposition",
"deleted": false
}
],
"pageSize": 100,
"hasNext": false,
"pageNumber": 0,
"totalElements": 3
}
}
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка запроса",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "-"
}
}
}
}
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка доступа",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Доступ запрещен. Проверьте наличие необходимых прав"
}
}
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"not_found": {
"description": "Элемент не найден",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Элемент 'AnyObj' с идентификатором 'ANY' не найден "
}
}
}
}
}
},
"500": {
"description": "Server error",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"server_error": {
"description": "Неизвестная серверная ошибка",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Неизвестная ошибка"
}
}
}
}
}
}
}
}
},
"/rest/api/unit/v1/find": {
"description": "Поиск с фильтром расширенной информации по юниту. deprecated - используйте '/rest/api/unit/v2/find' ",
"post": {
"tags": [
"API поиска юнита"
],
"summary": "Поиск с фильтром расширенной информации по юниту. deprecated - используйте '/rest/api/unit/v2/find' ",
"operationId": "find_8",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UnitPageDto",
"example": null
},
"example": null
}
},
"required": false
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PageDtoRsUnitInSuitWithSpacesInfo",
"example": null
},
"example": null
}
}
}
},
"deprecated": true
}
},
"/rest/api/unit/v1/convert/suit": {
"description": "Ищет типы задач по фильтру",
"post": {
"tags": [
"API допустимые операции задачи"
],
"summary": "Ищет типы задач по фильтру",
"description": "Ищет типы задач по фильтру",
"operationId": "find_9",
"requestBody": {
"description": "Постраничный запрос на поиск типов задач",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UnitConvertSuitPageRq",
"additionalProperties": false,
"description": "Постраничный запрос на поиск типов задач",
"example": null
},
"examples": {
"simple": {
"description": "Постраничный запрос на поиск типов задач",
"value": {
"filters": {
"unit": "SWTR-1"
},
"page": {
"page": 0,
"size": 100
}
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Типы задач, в которые можно преобразовать задачу",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PageDtoRsUnitConvertSuitInfo",
"additionalProperties": false,
"required": [
"content",
"hasNext",
"pageNumber",
"pageSize",
"totalElements"
],
"example": null
},
"examples": {
"Пример": {
"description": "Пример",
"value": {
"content": [
{
"code": "task",
"name": "Задача",
"description": "Задача",
"icon": "task"
},
{
"code": "idea",
"name": "Идея",
"description": "Идея",
"icon": "idea"
},
{
"code": "epic",
"name": "Эпик",
"description": "Эпик",
"icon": "epic"
}
],
"pageSize": 100,
"hasNext": false,
"pageNumber": 0,
"totalElements": 3
}
}
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка запроса",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "-"
}
}
}
}
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка доступа",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Доступ запрещен. Проверьте наличие необходимых прав"
}
}
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"not_found": {
"description": "Элемент не найден",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Элемент 'AnyObj' с идентификатором 'ANY' не найден "
}
}
}
}
}
},
"500": {
"description": "Server error",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"server_error": {
"description": "Неизвестная серверная ошибка",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Неизвестная ошибка"
}
}
}
}
}
}
}
}
},
"/extension/plugin/v2/rest/api/swtr_tms_plugin/v1/link": {
"description": "Массовое создание связей",
"post": {
"tags": [
"Test Management System"
],
"summary": "Массовое создание связей",
"operationId": "createLinks",
"requestBody": {
"description": "Тело запрос на создание связей",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UnitLinksRq",
"additionalProperties": false,
"description": "Запрос на создание связей юнита",
"required": [
"destinations",
"source",
"type"
],
"example": null
},
"examples": {
"Пример запроса на создание связей": {
"description": "Запрос на создание связей",
"value": {
"source": "TMS-27",
"destinations": [
"TMS-11"
],
"type": "test_cycle_to_test_case_link"
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Связи созданы успешно",
"content": {
"application/json": {
"schema": {
"type": "boolean",
"additionalProperties": false,
"description": "Результат создания связей",
"example": false,
"maxLength": 2147483647,
"pattern": ".*"
},
"examples": {
"success": {
"description": "Пример успешного ответа",
"value": true
}
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка запроса",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "-"
}
}
}
}
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка доступа",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Доступ запрещен. Проверьте наличие необходимых прав"
}
}
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"not_found": {
"description": "Элемент не найден",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Элемент 'AnyObj' с идентификатором 'ANY' не найден "
}
}
}
}
}
},
"500": {
"description": "Server error",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"server_error": {
"description": "Неизвестная серверная ошибка",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Неизвестная ошибка"
}
}
}
}
}
}
}
}
},
"/extension/plugin/v2/rest/api/swtr_tms_plugin/v1/link/units": {
"description": "Получение списка прилинкованных задач по типу связи с фильтрами",
"post": {
"tags": [
"Test Management System"
],
"summary": "Получение списка прилинкованных задач по типу связи с фильтрами",
"operationId": "getLinkedUnitsByType",
"requestBody": {
"description": "Тело запроса на получение связанных юнитов по типу",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GetTypedLinkedUnitsRq",
"additionalProperties": false,
"description": "Запрос на получение связанных юнитов по типу",
"required": [
"linkType",
"unitFilters",
"unitId"
],
"example": null
},
"examples": {
"Пример запроса на получение связанных юнитов по типу": {
"description": "Запрос на получение связанных юнитов по типу",
"value": {
"unitId": {
"code": "TMS-7"
},
"linkType": "TEST_CASE_TO_TEST_CASE_RUN_LINK_TYPE",
"unitFilters": {
"attributes": [
"test_case_run_status"
],
"page": {
"page": 0,
"size": 10
}
}
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Список связанных юнитов по типу связи",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/QLResponseDto",
"additionalProperties": false,
"description": "Информация о юнитах",
"required": [
"unit"
],
"example": null
},
"examples": {
"success": {
"description": "Пример ответа с тест-кейсами",
"value": {
"content": [
{
"unit": {
"code": "TMS-3434",
"summary": "TK!!!",
"description": "{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"attrs\":{\"id\":null,\"indent\":0,\"textAlign\":\"justify\"},\"content\":[{\"type\":\"text\",\"text\":\"test\"}]}]}",
"suit": {
"code": "test_case_run",
"name": "Прогон тест-кейса",
"icon": "memo_pencil"
},
"space": {
"code": "TMS",
"name": "Пространство TMS"
},
"spaces": [
{
"code": "TMS",
"name": "Пространство TMS"
}
],
"createdBy": {
"externalId": "100002",
"firstName": "Иван",
"lastName": "Тестов",
"middleName": "Иванович",
"login": "ivantestov",
"userDetails": []
},
"createdAt": "2025-09-24T09:14:30.689964Z",
"updatedBy": {
"externalId": "100002",
"firstName": "Иван",
"lastName": "Тестов",
"middleName": "Иванович",
"login": "ivantestov",
"userDetails": []
},
"updatedAt": "2025-09-24T09:14:30.689964Z",
"isFavorite": false,
"descriptionPlain": null
},
"attributes": [
{
"attribute": {
"code": "test_case_run_status",
"name": "Статус",
"type": "taxonomy",
"description": "Статус"
},
"value": {
"code": "not_started",
"name": "Не запускался"
},
"valueAsString": null
}
],
"calculatedAttributes": []
}
],
"pageSize": 10,
"hasNext": false,
"pageNumber": 0,
"totalElements": 1
}
}
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка запроса",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "-"
}
}
}
}
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка доступа",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Доступ запрещен. Проверьте наличие необходимых прав"
}
}
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"not_found": {
"description": "Элемент не найден",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Элемент 'AnyObj' с идентификатором 'ANY' не найден "
}
}
}
}
}
},
"500": {
"description": "Server error",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"server_error": {
"description": "Неизвестная серверная ошибка",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Неизвестная ошибка"
}
}
}
}
}
}
}
}
},
"/extension/plugin/v2/rest/api/swtr_tms_plugin/v1/link/test_plan/test_cycles": {
"description": "Получение списка прилинкованных к тест-плану тест-циклов с фильтрами",
"post": {
"tags": [
"Test Management System"
],
"summary": "Получение списка прилинкованных к тест-плану тест-циклов с фильтрами",
"operationId": "getLinkedTestCycles",
"requestBody": {
"description": "Тело запроса на получение связанных тест-циклов",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GetLinkedUnitsRq",
"additionalProperties": false,
"description": "Запрос на получения связанных тест-циклов",
"required": [
"unitFilters",
"unitId"
],
"example": null
},
"examples": {
"Пример запроса на получение связанных тест-циклов": {
"description": "Запрос на получения связанных тест-циклов",
"value": {
"unitId": {
"code": "TMS-25"
},
"unitFilters": {
"attributes": [
"test_cycle_status",
"plan_date_end",
"plan_date_start",
"release",
"owner",
"iteration_type",
"cycles_number",
"type_of_testing",
"test_case_test_type",
"old_jira_key",
"folder"
],
"page": {
"page": 0,
"size": 10
}
}
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Список тест-циклов, привязанных к тест-плану",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/QLResponseDto",
"additionalProperties": false,
"description": "Информация о тест-циклах",
"required": [
"unit"
],
"example": null
},
"examples": {
"success": {
"description": "Пример ответа с привязанными тест-циклами",
"value": {
"content": [
{
"unit": {
"unit": {
"code": "TMF-191",
"summary": "Тестовый цикл-25",
"description": null,
"suit": {
"code": "test_cycle",
"name": "Тест-цикл",
"icon": "memo_pencil"
},
"space": {
"code": "TMF",
"name": "TMF"
},
"spaces": [
{
"code": "TMF",
"name": "TMF"
}
],
"createdBy": {
"externalId": "100002",
"firstName": "Иван",
"lastName": "Тестов",
"middleName": "Иванович",
"login": "ivantestov",
"userDetails": []
},
"createdAt": "2025-12-01T12:36:41.738853Z",
"updatedBy": {
"externalId": "100002",
"firstName": "Иван",
"lastName": "Тестов",
"middleName": "Иванович",
"login": "ivantestov",
"userDetails": []
},
"updatedAt": "2025-12-01T12:36:41.738853Z",
"isFavorite": false,
"descriptionPlain": null
},
"attributes": [
{
"attribute": {
"code": "plan_date_end",
"name": "Плановая дата окончания",
"type": "date_time",
"description": "Плановая дата окончания"
},
"value": null,
"valueAsString": null
},
{
"attribute": {
"code": "test_cycle_status",
"name": "Статус",
"type": "taxonomy",
"description": "Статус"
},
"value": {
"code": "draft",
"name": "Не запускался"
},
"valueAsString": null
},
{
"attribute": {
"code": "folder",
"name": "Папка",
"type": "folder",
"description": "Папка"
},
"value": {
"code": "TMF_test_cycle",
"title": "Все тест-циклы"
},
"valueAsString": null
},
{
"attribute": {
"code": "cycles_number",
"name": "Номер цикла",
"type": "taxonomy",
"description": "Номер цикла"
},
"value": {
"code": "1",
"name": "1"
},
"valueAsString": null
},
{
"attribute": {
"code": "test_case_test_type",
"name": "Вид теста",
"type": "taxonomy",
"description": "Вид теста"
},
"value": {
"code": "smoke",
"name": "Smoke"
},
"valueAsString": null
},
{
"attribute": {
"code": "old_jira_key",
"name": "Ключ задачи в Jira",
"type": "text",
"description": "Ключ задачи в Jira"
},
"value": null,
"valueAsString": null
},
{
"attribute": {
"code": "plan_date_start",
"name": "Плановая дата начала",
"type": "date_time",
"description": "Плановая дата начала"
},
"value": null,
"valueAsString": null
},
{
"attribute": {
"code": "iteration_type",
"name": "Тип итерации",
"type": "taxonomy",
"description": "Тип итерации"
},
"value": null,
"valueAsString": null
}
],
"calculatedAttributes": []
},
"progressPercentage": {
"Не запускался": 0
},
"successPercentage": 0
}
],
"pageSize": 10,
"hasNext": false,
"pageNumber": 0,
"totalElements": 1
}
}
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка запроса",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "-"
}
}
}
}
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка доступа",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Доступ запрещен. Проверьте наличие необходимых прав"
}
}
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"not_found": {
"description": "Элемент не найден",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Элемент 'AnyObj' с идентификатором 'ANY' не найден "
}
}
}
}
}
},
"500": {
"description": "Server error",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"server_error": {
"description": "Неизвестная серверная ошибка",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Неизвестная ошибка"
}
}
}
}
}
}
}
}
},
"/extension/plugin/v2/rest/api/swtr_tms_plugin/v1/link/test_cycle/test_cases": {
"description": "Получение списка прилинкованных к тест-циклу тест-кейсов с фильтрами",
"post": {
"tags": [
"Test Management System"
],
"summary": "Получение списка прилинкованных к тест-циклу тест-кейсов с фильтрами",
"operationId": "getTestCases",
"requestBody": {
"description": "Тело запроса на получение связанных тест-кейсов",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GetLinkedUnitsRq",
"additionalProperties": false,
"description": "Запрос на получения связанных тест-кейсов",
"required": [
"unitFilters",
"unitId"
],
"example": null
},
"examples": {
"Пример запроса на получение связанных тест-кейсов": {
"description": "Запрос на получения связанных тест-кейсов",
"value": {
"unitId": {
"code": "TMS-27"
},
"unitFilters": {
"attributes": [
"status"
],
"page": {
"page": 0,
"size": 10
}
}
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Список тест-кейсов, привязанных к тест-циклу",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/QLResponseDto",
"additionalProperties": false,
"description": "Информация о юнитах",
"required": [
"unit"
],
"example": null
},
"examples": {
"success": {
"description": "Пример ответа с тест-кейсами",
"value": {
"content": [
{
"unit": {
"code": "TMS-28",
"summary": "TK!!!",
"description": "{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"attrs\":{\"id\":null,\"indent\":0,\"textAlign\":\"justify\"},\"content\":[{\"type\":\"text\",\"text\":\"test\"}]}]}",
"suit": {
"code": "test_case",
"name": "Тест-кейс",
"icon": "memo_pencil"
},
"space": {
"code": "TMS",
"name": "Пространство TMS"
},
"spaces": [
{
"code": "TMS",
"name": "Пространство TMS"
}
],
"createdBy": {
"externalId": "100002",
"firstName": "Иван",
"lastName": "Тестов",
"middleName": "Иванович",
"login": "ivantestov",
"userDetails": []
},
"createdAt": "2025-08-21T14:24:56.028278Z",
"updatedBy": {
"externalId": "100002",
"firstName": "Иван",
"lastName": "Тестов",
"middleName": "Иванович",
"login": "ivantestov",
"userDetails": []
},
"updatedAt": "2025-08-21T14:30:51.714929Z",
"isFavorite": false,
"descriptionPlain": null
},
"attributes": [],
"calculatedAttributes": []
}
],
"pageSize": 10,
"hasNext": false,
"pageNumber": 0,
"totalElements": 1
}
}
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка запроса",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "-"
}
}
}
}
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка доступа",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Доступ запрещен. Проверьте наличие необходимых прав"
}
}
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"not_found": {
"description": "Элемент не найден",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Элемент 'AnyObj' с идентификатором 'ANY' не найден "
}
}
}
}
}
},
"500": {
"description": "Server error",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"server_error": {
"description": "Неизвестная серверная ошибка",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Неизвестная ошибка"
}
}
}
}
}
}
}
}
},
"/extension/plugin/v2/rest/api/swtr_tms_plugin/v1/link/test_cycle/player": {
"description": "Получение списка прилинкованных тест-кейсов и актуальных прогонов к циклу",
"post": {
"tags": [
"Test Management System"
],
"summary": "Получение списка прилинкованных тест-кейсов и актуальных прогонов к циклу",
"operationId": "getLinkedTestCasesWithActualRuns",
"requestBody": {
"description": "Тело запроса на связанные тест-кейсы и прогоны",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GetTestCyclePlayerRq",
"additionalProperties": false,
"description": "Запрос на получение связанных тест-кейсов и актуальных прогонов",
"required": [
"assignedToMe",
"groupType",
"testCycleId"
],
"example": null
},
"examples": {
"Пример запроса на получение связанных тест-кейсов и прогонов": {
"description": "Запрос на получение связанных тест-кейсов и актуальных прогонов",
"value": {
"testCycleId": {
"code": "TMS-27"
},
"testCaseFilters": {
"properties": {
"or": [],
"and": []
}
},
"groupType": "PRIORITY",
"assignedToMe": false
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Список тест-кейсов и актуальных прогонов к циклу",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/GroupedTestCasesWithActualRuns"
},
"maxItems": 2147483647,
"minItems": 0,
"example": null
},
"examples": {
"success": {
"description": "Пример ответа с сгруппированными тест-кейсами и их прогонами",
"value": [
{
"group": {
"id": "high",
"type": "PRIORITY",
"name": "Высокий"
},
"testCasesWithActualRuns": [
{
"testCase": {
"id": {
"code": "TMS-28"
},
"name": "TK!!!",
"folder": {
"code": "TMS_test_case",
"title": "Все тест-кейсы"
},
"owner": {
"externalId": "2073028",
"firstName": "Кирилл",
"lastName": "Балашов",
"middleName": "Лаврентьевич",
"login": "balashovkirill",
"userDetails": []
},
"priority": {
"code": "high",
"name": "Высокий"
}
},
"actualTestCaseRun": {
"id": {
"code": "TMS-3439"
},
"name": "TK!!!",
"precondition": null,
"assignee": {
"externalId": "100002",
"firstName": "Иван",
"lastName": "Тестов",
"middleName": "Иванович",
"login": "ivantestov",
"userDetails": []
},
"status": {
"code": "not_started",
"name": "Не запускался"
}
},
"archivedTestCaseRuns": [
{
"id": {
"code": "TMS-3435"
},
"name": "TK!!!",
"precondition": null,
"assignee": {
"externalId": "100002",
"firstName": "Иван",
"lastName": "Тестов",
"middleName": "Иванович",
"login": "ivantestov",
"userDetails": []
},
"status": {
"code": "not_started",
"name": "Не запускался"
}
}
]
}
]
}
]
}
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка запроса",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "-"
}
}
}
}
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка доступа",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Доступ запрещен. Проверьте наличие необходимых прав"
}
}
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"not_found": {
"description": "Элемент не найден",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Элемент 'AnyObj' с идентификатором 'ANY' не найден "
}
}
}
}
}
},
"500": {
"description": "Server error",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"server_error": {
"description": "Неизвестная серверная ошибка",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Неизвестная ошибка"
}
}
}
}
}
}
}
}
},
"/extension/plugin/v2/rest/api/swtr_tms_plugin/v1/link/test_case_run/test_cycle": {
"description": "Получение списка прилинкованных тест-циклов с прогонами",
"post": {
"tags": [
"Test Management System"
],
"summary": "Получение списка прилинкованных тест-циклов с прогонами",
"operationId": "getTestCaseRunLinkedWithCycle",
"requestBody": {
"description": "Тело запроса на связанные тест-циклы и прогоны",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GetTypedLinkedUnitsWithTestCycleRq",
"additionalProperties": false,
"description": "Запрос на получение связанных тест-циклов и прогонов",
"required": [
"unitFilters",
"unitId"
],
"example": null
},
"examples": {
"Пример запроса на получение связанных тест-циклов и прогонов": {
"description": "Запрос на получение связанных тест-циклов и прогонов",
"value": {
"unitId": {
"code": "TMS-28"
},
"linkType": "TEST_CASE_TO_TEST_CASE_RUN_LINK_TYPE",
"unitFilters": {
"attributes": [
"test_case_run_status"
],
"page": {
"page": 0,
"size": 10
}
}
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Прилинкованные тест-циклы и прогоны",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TestCaseRunWithCycle",
"additionalProperties": false,
"description": "Информация о тест циклах с прогонами",
"required": [
"attributes",
"cycleCode",
"unit"
],
"example": null
},
"examples": {
"success": {
"description": "Пример ответа с тест-циклами и прогонами",
"value": {
"content": [
{
"unit": {
"code": "TMS-3435",
"summary": "TK!!!",
"description": "{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"attrs\":{\"id\":null,\"indent\":0,\"textAlign\":\"justify\"},\"content\":[{\"type\":\"text\",\"text\":\"test\"}]}]}",
"suit": {
"code": "test_case_run",
"name": "Прогон тест-кейса",
"icon": "memo_pencil"
},
"space": {
"code": "TMS",
"name": "Пространство TMS"
},
"spaces": [
{
"code": "TMS",
"name": "Пространство TMS"
}
],
"createdBy": {
"externalId": "100002",
"firstName": "Иван",
"lastName": "Тестов",
"middleName": "Иванович",
"login": "ivantestov",
"userDetails": []
},
"createdAt": "2025-09-24T09:36:23.204498Z",
"updatedBy": {
"externalId": "100002",
"firstName": "Иван",
"lastName": "Тестов",
"middleName": "Иванович",
"login": "ivantestov",
"userDetails": []
},
"updatedAt": "2025-09-24T12:05:45.720506Z",
"isFavorite": false,
"descriptionPlain": null
},
"attributes": [
{
"attribute": {
"code": "test_case_run_status",
"name": "Статус",
"type": "taxonomy",
"description": "Статус"
},
"value": {
"code": "not_started",
"name": "Не запускался"
},
"valueAsString": null
}
],
"cycleCode": {
"code": "TMS-27"
}
},
{
"unit": {
"code": "TMS-3439",
"summary": "TK!!!",
"description": "{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"attrs\":{\"id\":null,\"indent\":0,\"textAlign\":\"justify\"},\"content\":[{\"type\":\"text\",\"text\":\"test\"}]}]}",
"suit": {
"code": "test_case_run",
"name": "Прогон тест-кейса",
"icon": "memo_pencil"
},
"space": {
"code": "TMS",
"name": "Пространство TMS"
},
"spaces": [
{
"code": "TMS",
"name": "Пространство TMS"
}
],
"createdBy": {
"externalId": "100002",
"firstName": "Иван",
"lastName": "Тестов",
"middleName": "Иванович",
"login": "ivantestov",
"userDetails": []
},
"createdAt": "2025-09-24T12:05:45.341192Z",
"updatedBy": {
"externalId": "100002",
"firstName": "Иван",
"lastName": "Тестов",
"middleName": "Иванович",
"login": "ivantestov",
"userDetails": []
},
"updatedAt": "2025-09-24T12:05:45.341192Z",
"isFavorite": false,
"descriptionPlain": null
},
"attributes": [
{
"attribute": {
"code": "test_case_run_status",
"name": "Статус",
"type": "taxonomy",
"description": "Статус"
},
"value": {
"code": "not_started",
"name": "Не запускался"
},
"valueAsString": null
}
],
"cycleCode": {
"code": "TMS-27"
}
}
],
"pageSize": 10,
"hasNext": false,
"pageNumber": 0,
"totalElements": 2
}
}
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка запроса",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "-"
}
}
}
}
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка доступа",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Доступ запрещен. Проверьте наличие необходимых прав"
}
}
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"not_found": {
"description": "Элемент не найден",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Элемент 'AnyObj' с идентификатором 'ANY' не найден "
}
}
}
}
}
},
"500": {
"description": "Server error",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"server_error": {
"description": "Неизвестная серверная ошибка",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Неизвестная ошибка"
}
}
}
}
}
}
}
}
},
"/rest/api/unit/v1/link/type/update/{code}": {
"description": "Изменение типа связи",
"patch": {
"tags": [
"API создания/изменения типов связей юнитов"
],
"summary": "Изменение типа связи",
"operationId": "update_13",
"parameters": [
{
"name": "code",
"in": "path",
"description": "Код типа связи",
"required": true,
"schema": {
"type": "string",
"example": "Пример",
"maxLength": 2147483647,
"pattern": ".*"
},
"example": "SWTRTST"
}
],
"requestBody": {
"description": "Постраничный запрос на поиск типов связей",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LinkTypePageRq",
"additionalProperties": false,
"description": "Запрос на получение постраничного списка типов связей",
"example": null
},
"examples": {
"simple": {
"description": "Запрос первой страницы с 100 типами связей",
"value": {
"filters": {
"textSearch": "Деко"
},
"page": {
"page": 0,
"size": 100
}
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Запрос на обновление типа связи",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateResponse",
"additionalProperties": false,
"description": "Информация об обновленном типе связи",
"required": [
"id"
],
"example": null
},
"examples": {
"success": {
"description": "Информация по обновленному типу связи",
"value": {
"id": "SWTRTST"
}
}
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка запроса",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "-"
}
}
}
}
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"forbidden": {
"description": "Ошибка доступа",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Доступ запрещен. Проверьте наличие необходимых прав"
}
}
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"not_found": {
"description": "Элемент не найден",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Элемент 'AnyObj' с идентификатором 'ANY' не найден "
}
}
}
}
}
},
"500": {
"description": "Server error",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#/components/schemas/ErrorDTO",
"additionalProperties": false,
"description": "Ответ в случае ошибки",
"required": [
"exceptionUUID",
"uiErrorMessage"
],
"example": null
},
"examples": {
"server_error": {
"description": "Неизвестная серверная ошибка",
"value": {
"exceptionUUID": "18pE95Ic93",
"uiErrorMessage": "Неизвестная ошибка"
}
}
}
}
}
}
}
}
},