feature #8: create Vote Constitution route

This commit is contained in:
2019-08-30 15:51:55 +02:00
parent 96362bbb66
commit f5bff403f0
4 changed files with 68 additions and 2 deletions

View File

@@ -403,6 +403,30 @@ paths:
responses:
201:
description: Return only http status 201 on success
/constitutions/{constitution}/vote:
parameters:
- name: constitution
in: path
description: The ID of constitution
example: e74be8e4-6823-47c4-bd1b-789725b2fa8e
required: true
schema:
type: string
format: uuid
put:
security:
- JWTAuth: []
summary: Vote for one constitution
tags:
- vote
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/VoteRequest'
responses:
201:
description: Return only http status 201 on success
components:
parameters: