Add validation on route GetCitizenVotesOnArticle

This commit is contained in:
2021-04-15 01:27:48 +02:00
parent 13253e4af1
commit 496cf50d88
4 changed files with 53 additions and 1 deletions

View File

@@ -1265,6 +1265,9 @@ paths:
- vote
- article
- citizen
parameters:
- $ref: '#/components/parameters/page'
- $ref: '#/components/parameters/limit'
responses:
200:
description: Votes
@@ -1279,6 +1282,12 @@ paths:
type: array
items:
$ref: '#/components/schemas/VoteResponse'
400:
description: BadReqest
content:
application/json:
schema:
$ref: '#/components/schemas/400'
401:
$ref: '#/components/responses/401'
/articles/{article}/vote: