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 или не передано - этого ограничения нет. нижняя граница времени description: таймштамп времени, после которого выбирать статистику. если 0 или не передано - этого ограничения нет. нижняя граница времени
type: integer type: integer
responses: 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: GetQuizResultsResp:
description: список результатов, уместившийся на запрошенной странице description: список результатов, уместившийся на запрошенной странице
content: content:
@ -745,6 +720,24 @@ components:
deactivated: deactivated:
type: integer type: integer
schemas: 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: Answer:
type: object type: object
properties: properties:
@ -1564,18 +1557,14 @@ paths:
schema: schema:
type: integer type: integer
requestBody: requestBody:
required: true $ref: '#/components/requestBodies/GetStatisticsReq'
content:
application/json:
schema:
$ref: '#/components/requestBodies/GetStatisticsReq'
responses: responses:
'200': '200':
description: Успешное получение статистики description: Успешное получение статистики
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/responses/PipeLineStatsResp' $ref: '#/components/schemas/PipeLineStatsResp'
'400': '400':
description: Bad Request description: Bad Request
'500': '500':