feature #8: create Vote Constitution route
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user