Test openapi schema of GET /citizens/{citizen}/comments/articles

This commit is contained in:
2021-03-17 18:30:46 +01:00
parent 7765e6d27a
commit 33ceb13cde
2 changed files with 78 additions and 1 deletions

View File

@@ -573,6 +573,33 @@ paths:
$ref: '#/components/schemas/CommentResponse'
401:
$ref: '#/components/responses/401'
/citizens/{citizen}/comments/articles:
parameters:
- $ref: '#/components/parameters/citizen'
get:
security:
- JWTAuth: []
summary: all article comments for one citizen
tags:
- comment
- article
- citizen
responses:
200:
description: Comments
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Paginated'
- type: object
properties:
result:
type: array
items:
$ref: '#/components/schemas/CommentResponse'
401:
$ref: '#/components/responses/401'
components:
parameters: