Commit cd2f7c72 authored by Gabriel Macena's avatar Gabriel Macena

[API] Adiciona e corrige rotas de Phases

parent 3e502abd
This diff is collapsed.
......@@ -105,16 +105,19 @@ MinimumPerformance:
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.yaml/#/MinimumPerformance
ClassificationRule:
$ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.yaml/#/ClassificationRule
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.yaml/#/ClassificationStrategy
EvaluationRule:
$ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.yaml/#/EvaluationRule
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.yaml/#/EvaluationFormula
TieBreakCriteria:
$ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.yaml/#/TieBreakCriteria
Rank:
$ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.yaml/#/Rank
Ranking:
$ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.yaml/#/Ranking
Subscription:
$ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/Subscription
......
......@@ -84,7 +84,7 @@ BestRanked:
- tieBreakCriterias
- number
allOf:
- $ref: '#/ClassificationRule'
- $ref: '#/ClassificationStrategy'
- type: object
properties:
number:
......@@ -97,12 +97,12 @@ MinimumPerformance:
required:
- cutOffMark
allOf:
- $ref: '#/ClassificationRule'
- $ref: '#/ClassificationStrategy'
- type: object
properties:
cutOffMark:
type: number
ClassificationRule:
ClassificationStrategy:
required:
- type
properties:
......@@ -118,7 +118,7 @@ ClassificationRule:
mapping:
BEST_RANKED: '#/BestRanked'
MINIMUM_PERFORMANCE: '#/MinimumPerformance'
EvaluationRule:
EvaluationFormula:
required:
- expression
properties:
......@@ -143,10 +143,10 @@ Rank:
properties:
timestamp:
type: integer
classificationRule:
$ref: '#/ClassificationRule'
evaluationRule:
$ref: '#/EvaluationRule'
classificationStrategy:
$ref: '#/ClassificationStrategy'
EvaluationFormula:
$ref: '#/EvaluationFormula'
position:
type: integer
grade:
......@@ -160,3 +160,17 @@ Rank:
type: array
items:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Submission.yaml/#/AssessmentSubmissionEvaluation'
Ranking:
required:
- timestamp
properties:
id:
type: integer
ranks:
type: array
items:
$ref: '#/Rank'
timestamp:
type: integer
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment