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: ...@@ -105,16 +105,19 @@ MinimumPerformance:
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.yaml/#/MinimumPerformance https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.yaml/#/MinimumPerformance
ClassificationRule: ClassificationRule:
$ref: >- $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: EvaluationRule:
$ref: >- $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: TieBreakCriteria:
$ref: >- $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.yaml/#/TieBreakCriteria https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.yaml/#/TieBreakCriteria
Rank: Rank:
$ref: >- $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.yaml/#/Rank 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: Subscription:
$ref: >- $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/Subscription https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/Subscription
......
...@@ -84,7 +84,7 @@ BestRanked: ...@@ -84,7 +84,7 @@ BestRanked:
- tieBreakCriterias - tieBreakCriterias
- number - number
allOf: allOf:
- $ref: '#/ClassificationRule' - $ref: '#/ClassificationStrategy'
- type: object - type: object
properties: properties:
number: number:
...@@ -97,12 +97,12 @@ MinimumPerformance: ...@@ -97,12 +97,12 @@ MinimumPerformance:
required: required:
- cutOffMark - cutOffMark
allOf: allOf:
- $ref: '#/ClassificationRule' - $ref: '#/ClassificationStrategy'
- type: object - type: object
properties: properties:
cutOffMark: cutOffMark:
type: number type: number
ClassificationRule: ClassificationStrategy:
required: required:
- type - type
properties: properties:
...@@ -118,7 +118,7 @@ ClassificationRule: ...@@ -118,7 +118,7 @@ ClassificationRule:
mapping: mapping:
BEST_RANKED: '#/BestRanked' BEST_RANKED: '#/BestRanked'
MINIMUM_PERFORMANCE: '#/MinimumPerformance' MINIMUM_PERFORMANCE: '#/MinimumPerformance'
EvaluationRule: EvaluationFormula:
required: required:
- expression - expression
properties: properties:
...@@ -143,10 +143,10 @@ Rank: ...@@ -143,10 +143,10 @@ Rank:
properties: properties:
timestamp: timestamp:
type: integer type: integer
classificationRule: classificationStrategy:
$ref: '#/ClassificationRule' $ref: '#/ClassificationStrategy'
evaluationRule: EvaluationFormula:
$ref: '#/EvaluationRule' $ref: '#/EvaluationFormula'
position: position:
type: integer type: integer
grade: grade:
...@@ -160,3 +160,17 @@ Rank: ...@@ -160,3 +160,17 @@ Rank:
type: array type: array
items: items:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Submission.yaml/#/AssessmentSubmissionEvaluation' $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