Skip to content

Commit e2dada5

Browse files
Добавил эндпоинт вывода вопросов по тэгам в спецификацию (#68)
1 parent 53ca61b commit e2dada5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

openapi.yml

+22
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,28 @@ paths:
151151
description: 'Ошибка авторизации'
152152
'400':
153153
description: 'Неправильный, некорректный запрос'
154+
/tags/{tagId}/questions:
155+
get:
156+
summary: 'Поиск вопросов по тэгам'
157+
parameters:
158+
- in: path
159+
name: tagId
160+
schema:
161+
type: string
162+
required: true
163+
description: 'Идентификатор тэга'
164+
responses:
165+
'200':
166+
description: 'Вывод вопросов по определенному тэгу'
167+
content:
168+
application/json:
169+
schema:
170+
type: array
171+
items:
172+
type: string
173+
$ref: '#/components/schemas/QuestionData'
174+
'400':
175+
description: 'Некорректный запрос'
154176
/questions:
155177
get:
156178
summary: 'Поиск по вопросам'

0 commit comments

Comments
 (0)