H-3869: документация LMS-модуля в v2 swagger #41

Open
anton wants to merge 2 commits from feature/H-3869 into master
Showing only changes of commit aad4cd51fc - Show all commits
+12 -11
View File
@@ -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: Список названий шаблонов для фильтра