From aad4cd51fccb8326a248f4879c0274ecc06312d2 Mon Sep 17 00:00:00 2001 From: Anton Pomorzin Date: Mon, 22 Jun 2026 11:55:05 +0500 Subject: [PATCH] =?UTF-8?q?H-3869:=20=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= =?UTF-8?q?=20swagger=20=D0=BF=D0=BE=20=D1=84=D0=B0=D0=BA=D1=82=D0=B8?= =?UTF-8?q?=D1=87=D0=B5=D1=81=D0=BA=D0=B8=D0=BC=20=D0=BF=D1=83=D1=82=D1=8F?= =?UTF-8?q?=D0=BC=20=D0=B8=20=D1=82=D0=B5=D0=BA=D1=81=D1=82=D0=B0=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v2/swagger.yaml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/v2/swagger.yaml b/v2/swagger.yaml index b6a003c..072bef1 100644 --- a/v2/swagger.yaml +++ b/v2/swagger.yaml @@ -8947,9 +8947,10 @@ paths: tags: [admin-lms-attempt] summary: Сбросить (удалить) попытку description: | - Soft-delete попытки. Если попытка в статусе `finishing` (фоновый - воркер ещё может её менять) — возвращается HTTP 422 с - `HttpJsonResult` (`success: false`, `message.error`). + Soft-delete попытки. Если попытка ещё завершается (статус + `finishing`, фоновый воркер может её менять) — возвращается + HTTP 422 с `HttpJsonResult` (`success: false`, + `message.error = "Попытка сейчас завершается, попробуйте позже"`). operationId: adminLmsAttemptDelete parameters: - name: id @@ -8966,7 +8967,7 @@ paths: 404: description: Попытка не найдена. 422: - description: Попытка находится в статусе `finishing` — сброс невозможен. + description: Попытка ещё завершается — сброс невозможен. /admin/lms/lms-attempt/assessment: get: @@ -9540,7 +9541,7 @@ paths: # ========================================================================= # LMS — Редактор шаблонов сертификатов (admin) # ========================================================================= - /admin/lms/lms-certificate-editor: + /admin/lms-certificate-editor: get: tags: [admin-lms-certificate-editor] summary: Список шаблонов сертификатов @@ -9562,7 +9563,7 @@ paths: schema: $ref: '#/components/schemas/LmsCertificateTemplateList' - /admin/lms/lms-certificate-editor/view: + /admin/lms-certificate-editor/view: get: tags: [admin-lms-certificate-editor] summary: Один шаблон @@ -9582,7 +9583,7 @@ paths: 404: description: Шаблон сертификата не найден. - /admin/lms/lms-certificate-editor/create: + /admin/lms-certificate-editor/create: post: tags: [admin-lms-certificate-editor] summary: Создать шаблон сертификата @@ -9604,7 +9605,7 @@ paths: - $ref: '#/components/schemas/LmsCertificateTemplate' - $ref: '#/components/schemas/LmsAdminHttpJsonResult' - /admin/lms/lms-certificate-editor/update: + /admin/lms-certificate-editor/update: post: tags: [admin-lms-certificate-editor] summary: Обновить шаблон сертификата @@ -9632,7 +9633,7 @@ paths: 404: description: Шаблон не найден. - /admin/lms/lms-certificate-editor/delete: + /admin/lms-certificate-editor/delete: delete: tags: [admin-lms-certificate-editor] summary: Удалить шаблон сертификата @@ -9654,7 +9655,7 @@ paths: 404: description: Шаблон не найден. - /admin/lms/lms-certificate-editor/field-types: + /admin/lms-certificate-editor/field-types: get: tags: [admin-lms-certificate-editor] summary: Доступные типы полей для шаблонов сертификатов @@ -9671,7 +9672,7 @@ paths: additionalProperties: type: string - /admin/lms/lms-certificate-editor/names: + /admin/lms-certificate-editor/names: get: tags: [admin-lms-certificate-editor] summary: Список названий шаблонов для фильтра