diff --git a/docs/swagger.yaml b/docs/swagger.yaml index cb43137..611559b 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -201,6 +201,17 @@ definitions: $ref: '#/definitions/domain.Connection' type: array type: object + domain.ModuleRelation: + properties: + id: + type: string + name: + type: string + requiredModules: + items: + $ref: '#/definitions/domain.RequiredModuleType' + type: array + type: object domain.PrometheusTargets: properties: labels: @@ -222,6 +233,13 @@ definitions: - keepVersions - moduleName type: object + domain.RequiredModuleType: + properties: + id: + type: string + name: + type: string + type: object domain.SyncConfigRequest: properties: moduleName: @@ -747,6 +765,27 @@ paths: summary: Метод полчения полной информации о состоянии модулей tags: - Модули + /module/get_required_modules: + post: + consumes: + - application/json + description: Возвращает список модулей с их зависимостями + produces: + - application/json + responses: + "200": + description: OK + schema: + items: + $ref: '#/definitions/domain.ModuleRelation' + type: array + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/github_com_txix-open_isp-kit_grpc_apierrors.Error' + summary: Метод для получения зависимостей модулей + tags: + - Модули /routing/get_routes: post: consumes: