rename vote/judge verbs to participate

pull/13/head
Nathanaël Jourdane 4 years ago committed by guhur
parent 89ccb97df9
commit 8865304612

@ -316,9 +316,9 @@ components:
description: A unique identifier description: A unique identifier
example: JtRm05yjMAuFCI2uwnFp example: JtRm05yjMAuFCI2uwnFp
readOnly: true readOnly: true
has-voted: has-participed:
type: boolean type: boolean
description: 'True if the judge already voted on the poll, False otherwise' description: 'True if the judge already participed to the poll, False otherwise'
example: true example: true
poll-id: poll-id:
type: string type: string

@ -5,9 +5,9 @@ properties:
description: A unique identifier description: A unique identifier
example: JtRm05yjMAuFCI2uwnFp example: JtRm05yjMAuFCI2uwnFp
readOnly: true readOnly: true
has-voted: has-participed:
type: boolean type: boolean
description: True if the judge already voted on the poll, False otherwise description: True if the judge already participed to the poll, False otherwise
example: true example: true
poll-id: poll-id:
type: string type: string

@ -11,14 +11,14 @@ properties:
description: 'The title of the poll' description: 'The title of the poll'
candidates: candidates:
type: array type: array
description: The candidates being judged in a poll. description: The candidates being voted in a poll.
minItems: 2 minItems: 2
maxItems: 20 maxItems: 20
items: items:
$ref: ./candidate.yaml $ref: ./candidate.yaml
grades: grades:
type: array type: array
description: The grades on which one judges a candidate. description: The grades on which one vote to a candidate.
minItems: 2 minItems: 2
maxItems: 10 maxItems: 10
items: items:

Loading…
Cancel
Save