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

This commit is contained in:
2021-03-22 00:30:31 +01:00
parent fbd18e4c2e
commit 5dc1518cfc
3 changed files with 45 additions and 2 deletions

View File

@@ -770,6 +770,31 @@ paths:
description: Return only http status 204 on success
401:
$ref: '#/components/responses/401'
/citizens/{citizen}/follows/articles:
parameters:
- $ref: '#/components/parameters/citizen'
get:
security:
- JWTAuth: [ ]
summary: Return Follow or nothing if you not follow
tags:
- follow
- article
- citizen
responses:
200:
description: Return your follows
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Paginated'
- type: object
properties:
result:
type: array
items:
$ref: '#/components/schemas/FollowResponse'
components:
parameters: