Mirror of the MieuxVoter API specifications. https://api.mieuxvoter.fr
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

34 lines
758 B

parameters:
- in: path
name: poll-id
required: true
schema:
type: string
post:
operationId: create-ballot
summary: Creates a ballot
requestBody:
required: true
content:
application/json:
schema:
$ref: ../components/schemas/ballot.yaml
security:
- {}
- judgeAuth: []
responses:
'201':
description: Created
content:
application/json:
schema:
type: object
properties:
id:
type: string
description: Id of the created ballot.
links:
get-ballot:
$ref: ../components/links/get-ballot.yaml
delete-ballot:
$ref: ../components/links/delete-ballot.yaml