update openapi

This commit is contained in:
Pavel 2024-06-20 15:57:00 +03:00
parent ba06247eb1
commit 3c53f7365e

@ -352,31 +352,6 @@ components:
description: таймштамп времени, после которого выбирать статистику. если 0 или не передано - этого ограничения нет. нижняя граница времени
type: integer
responses:
Statistic:
description:
content:
'application/json':
schema:
type: object
properties:
Count:
type: integer
format: int64
description: Количество сессий прошедших через этот вопрос
QuestionID:
type: integer
format: int64
description: id вопроса
PipeLineStatsResp:
description:
content:
'application/json':
schema:
type: object
additionalProperties:
type: array
items:
$ref: '#/components/responses/Statistic'
GetQuizResultsResp:
description: список результатов, уместившийся на запрошенной странице
content:
@ -745,6 +720,24 @@ components:
deactivated:
type: integer
schemas:
Statistic:
type: object
properties:
Count:
type: integer
format: int64
description: Количество прошедших сессий
QuestionID:
type: integer
format: int64
description: Идентификатор вопроса
PipeLineStatsResp:
type: object
additionalProperties:
type: array
items:
$ref: '#/components/schemas/Statistic'
Answer:
type: object
properties:
@ -1564,18 +1557,14 @@ paths:
schema:
type: integer
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/requestBodies/GetStatisticsReq'
$ref: '#/components/requestBodies/GetStatisticsReq'
responses:
'200':
description: Успешное получение статистики
content:
application/json:
schema:
$ref: '#/components/responses/PipeLineStatsResp'
$ref: '#/components/schemas/PipeLineStatsResp'
'400':
description: Bad Request
'500':