Test openapi schema of GET /comments/{comment}/children

This commit is contained in:
2021-03-17 20:55:58 +01:00
parent 65bf9a75f0
commit 564d612e9a
2 changed files with 71 additions and 1 deletions

View File

@@ -573,6 +573,27 @@ paths:
$ref: '#/components/schemas/CommentResponse'
401:
$ref: '#/components/responses/401'
/comments/{comment}/children:
parameters:
- $ref: '#/components/parameters/comment'
get:
summary: Get Comment children by Comment ID
tags:
- comment
responses:
200:
description: Return Comment children
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Paginated'
- type: object
properties:
result:
type: array
items:
$ref: '#/components/schemas/CommentResponse'
/citizens/{citizen}/comments/articles:
parameters:
- $ref: '#/components/parameters/citizen'