Add validation on route PutVoteOnConstitution

This commit is contained in:
2021-04-15 02:42:29 +02:00
parent 367f59ee18
commit 1118866856
3 changed files with 71 additions and 14 deletions

View File

@@ -1194,6 +1194,12 @@ paths:
responses:
201:
description: Return only http status 201 on success
400:
description: BadReqest
content:
application/json:
schema:
$ref: '#/components/schemas/400'
/citizens/{citizen}/votes:
parameters:
- $ref: '#/components/parameters/citizen'