Commit c31cf232 authored by Rosana Aurélio's avatar Rosana Aurélio

[API] Correção api

parent 0d7cb477
...@@ -85,12 +85,12 @@ Message: ...@@ -85,12 +85,12 @@ Message:
JsonPatch: JsonPatch:
$ref: >- $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/JsonPatch.yaml https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/JsonPatch.yaml
Competition:
$ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.yaml/#/Competition
Phase: Phase:
$ref: >- $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.yaml/#/Phase https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.yaml/#/Phase
Competition:
$ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.yaml/#/Competition
PhaseEvent: PhaseEvent:
$ref: >- $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.yaml/#/PhaseEvent https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.yaml/#/PhaseEvent
...@@ -154,3 +154,9 @@ FormSection: ...@@ -154,3 +154,9 @@ FormSection:
User: User:
$ref: >- $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Auth.yaml/#/User https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Auth.yaml/#/User
Submission:
$ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/Submission
Subscription:
$ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/Subscription
\ No newline at end of file
Competition:
required:
- id
- uri
- name
- status
- subscription
properties:
uri:
type: string
name:
type: string
description:
type: string
status:
type: string
enum:
- ACTIVE
- INACTIVE
subscription:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/Subscription'
exams:
type: array
items:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Exam.yaml/#/Exam'
phase:
type: array
items:
$ref: '#/Phase'
finalPhase:
$ref: '#/Phase'
initialPhase:
$ref: '#/Phase'
currentPhase:
$ref: '#/Phase'
competifiers:
type: array
items:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Competifier.yaml/#/Competifier'
AssessmentConclusionTime: AssessmentConclusionTime:
allOf: allOf:
- $ref: '#/TieBreakStrategy' - $ref: '#/TieBreakStrategy'
...@@ -55,7 +16,7 @@ AssessmentPriorityStrategy: ...@@ -55,7 +16,7 @@ AssessmentPriorityStrategy:
priorities: priorities:
type: array type: array
items: items:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Assessment.yaml/#/AssessmentPriority' - $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Assessment.yaml/#/AssessmentPriority'
BestRanked: BestRanked:
required: required:
- number - number
...@@ -65,7 +26,7 @@ BestRanked: ...@@ -65,7 +26,7 @@ BestRanked:
tieBreakStrategies: tieBreakStrategies:
type: array type: array
items: items:
$ref: '#/TieBreakStrategy' - $ref: '#/TieBreakStrategy'
ClassificationStrategy: ClassificationStrategy:
required: required:
- type - type
...@@ -136,19 +97,19 @@ Phase: ...@@ -136,19 +97,19 @@ Phase:
assessments: assessments:
type: array type: array
items: items:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Assessment.yaml/#/Assessment' - $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Assessment.yaml/#/Assessment'
evaluations: evaluations:
type: array type: array
items: items:
$ref: '#/Ranking' - $ref: '#/Ranking'
events: events:
type: array type: array
items: items:
$ref: '#/PhaseEvent' - $ref: '#/PhaseEvent'
participations: participations:
type: array type: array
items: items:
$ref: '#/PhaseParticipation' - $ref: '#/PhaseParticipation'
competition: competition:
$ref: '#/Competition' $ref: '#/Competition'
PhaseEvent: PhaseEvent:
...@@ -185,7 +146,7 @@ PhaseParticipation: ...@@ -185,7 +146,7 @@ PhaseParticipation:
assignments: assignments:
type: array type: array
items: items:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Assessment.yaml/#/Assignment' - $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Assessment.yaml/#/Assignment'
QuestionGroupPriorityStrategy: QuestionGroupPriorityStrategy:
allOf: allOf:
$ref: '#/TieBreakStrategy' $ref: '#/TieBreakStrategy'
...@@ -194,7 +155,7 @@ QuestionGroupPriorityStrategy: ...@@ -194,7 +155,7 @@ QuestionGroupPriorityStrategy:
priorities: priorities:
type: array type: array
items: items:
$ref: '#/GroupPriority' - $ref: '#/GroupPriority'
Rank: Rank:
required: required:
- position - position
...@@ -230,7 +191,7 @@ Ranking: ...@@ -230,7 +191,7 @@ Ranking:
qualified: qualified:
type: array type: array
items: items:
$ref: '#Rank' $ref: '#/Rank'
TieBreakStrategy: TieBreakStrategy:
required: required:
- type - type
...@@ -251,3 +212,42 @@ TieBreakStrategy: ...@@ -251,3 +212,42 @@ TieBreakStrategy:
ASSESSMENT_PRIORITY: '#/AssessmentPriority' ASSESSMENT_PRIORITY: '#/AssessmentPriority'
QUESTION_PRIORITY: '#/QuestionGroupPriorityStrategy' QUESTION_PRIORITY: '#/QuestionGroupPriorityStrategy'
ASSESSMENT_CONCLUSION_TIME: '#/AssessmentConclusionTime' ASSESSMENT_CONCLUSION_TIME: '#/AssessmentConclusionTime'
Competition:
required:
- id
- uri
- name
- status
- subscription
properties:
uri:
type: string
name:
type: string
description:
type: string
status:
type: string
enum:
- ACTIVE
- INACTIVE
subscription:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/Subscription'
exams:
type: array
items:
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Exam.yaml/#/Exam'
phase:
type: array
items:
- $ref: '#/Phase'
finalPhase:
$ref: '#/Phase'
initialPhase:
$ref: '#/Phase'
currentPhase:
$ref: '#/Phase'
competifiers:
type: array
items:
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Competifier.yaml/#/Competifier'
\ 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