From 03fcb26473ce8fa3e875481dba2405e72d1e3317 Mon Sep 17 00:00:00 2001 From: nglmq Date: Tue, 21 Apr 2026 11:57:23 +0300 Subject: [PATCH] MSP-7572 swagger update --- docs/swagger.yaml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) 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: