Загрузка данных


    "/extension/plugin/v2/rest/api/swtr_wiki_migrator_plugin/v1/link/redirect": {
      "description": "Перейти по актуальной ссылке",
      "get": {
        "tags": [
          "Confluence to Wiki migrator"
        ],
        "summary": "Перейти по актуальной ссылке",
        "operationId": "getLink",
        "parameters": [
          {
            "name": "sourceUrl",
            "in": "query",
            "description": "sourceUrl",
            "required": true,
            "schema": {
              "type": "string",
              "example": "Пример",
              "maxLength": 2147483647,
              "pattern": ".*"
            },
            "example": "Пример"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/extension/plugin/v2/rest/api/swtr_tms_plugin/v1/link/{unitId}/has_test_cases": {
      "description": "Наличие связанных тест-кейсов по коду юнита",
      "get": {
        "tags": [
          "Test Management System"
        ],
        "summary": "Наличие связанных тест-кейсов по коду юнита",
        "operationId": "hasLinkedTestCases",
        "parameters": [
          {
            "name": "unitId",
            "in": "path",
            "description": "Код юнита",
            "required": true,
            "schema": {
              "type": "string",
              "example": "Пример",
              "maxLength": 2147483647,
              "pattern": ".*"
            },
            "example": "TMS-25"
          }
        ],
        "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/delete": {
      "description": "Помечает существующую связь как удаленную",
      "delete": {
        "tags": [
          "API создания/изменения связей юнитов"
        ],
        "summary": "Помечает существующую связь как удаленную",
        "operationId": "delete_9",
        "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": "Неизвестная ошибка"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/rest/api/unit/v1/link/delete/{source}/{destination}/{type}": {
      "description": "Помечает существующую связь как удаленную",
      "delete": {
        "tags": [
          "API создания/изменения связей юнитов"
        ],
        "summary": "Помечает существующую связь как удаленную",
        "operationId": "delete_10",
        "parameters": [
          {
            "name": "source",
            "in": "path",
            "description": "Код юнита - источника",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Код юнита - источника",
              "example": "Пример",
              "maxLength": 2147483647,
              "pattern": ".*"
            },
            "example": "Пример"
          },
          {
            "name": "destination",
            "in": "path",
            "description": "Код юнита - назначения",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Код юнита - назначения",
              "example": "Пример",
              "maxLength": 2147483647,
              "pattern": ".*"
            },
            "example": "Пример"
          },
          {
            "name": "type",
            "in": "path",
            "description": "Тип связи",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Тип связи",
              "example": "Пример",
              "maxLength": 2147483647,
              "pattern": ".*"
            },
            "example": "Пример"
          }
        ],
        "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/delete": {
      "description": "Массовое удаление связей",
      "delete": {
        "tags": [
          "Test Management System"
        ],
        "summary": "Массовое удаление связей",
        "operationId": "deleteLinks",
        "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": "Неизвестная ошибка"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },