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

[API] Correção api

parent 0d7cb477
......@@ -85,12 +85,12 @@ Message:
JsonPatch:
$ref: >-
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:
$ref: >-
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:
$ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.yaml/#/PhaseEvent
......@@ -154,3 +154,9 @@ FormSection:
User:
$ref: >-
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:
allOf:
- $ref: '#/TieBreakStrategy'
......@@ -55,7 +16,7 @@ AssessmentPriorityStrategy:
priorities:
type: array
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:
required:
- number
......@@ -65,7 +26,7 @@ BestRanked:
tieBreakStrategies:
type: array
items:
$ref: '#/TieBreakStrategy'
- $ref: '#/TieBreakStrategy'
ClassificationStrategy:
required:
- type
......@@ -136,19 +97,19 @@ Phase:
assessments:
type: array
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:
type: array
items:
$ref: '#/Ranking'
- $ref: '#/Ranking'
events:
type: array
items:
$ref: '#/PhaseEvent'
- $ref: '#/PhaseEvent'
participations:
type: array
items:
$ref: '#/PhaseParticipation'
- $ref: '#/PhaseParticipation'
competition:
$ref: '#/Competition'
PhaseEvent:
......@@ -185,7 +146,7 @@ PhaseParticipation:
assignments:
type: array
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:
allOf:
$ref: '#/TieBreakStrategy'
......@@ -194,7 +155,7 @@ QuestionGroupPriorityStrategy:
priorities:
type: array
items:
$ref: '#/GroupPriority'
- $ref: '#/GroupPriority'
Rank:
required:
- position
......@@ -230,7 +191,7 @@ Ranking:
qualified:
type: array
items:
$ref: '#Rank'
$ref: '#/Rank'
TieBreakStrategy:
required:
- type
......@@ -251,3 +212,42 @@ TieBreakStrategy:
ASSESSMENT_PRIORITY: '#/AssessmentPriority'
QUESTION_PRIORITY: '#/QuestionGroupPriorityStrategy'
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