Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Docs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Registry
Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Competify
Docs
Commits
9f96699f
Commit
9f96699f
authored
Jul 13, 2018
by
Isaac Pereira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[API] Corrige referências para schemas em .json
parent
2a5dcb3e
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
448 additions
and
461 deletions
+448
-461
Competify.API.yaml
Api/Competify.API.yaml
+7
-7
Competition.API.yaml
Api/Competition.API.yaml
+131
-131
Competition.Adm.API.yaml
Api/Competition.Adm.API.yaml
+103
-103
schemas.json
Api/components/schemas.json
+52
-52
Assessment.json
Api/components/schemas/Assessment.json
+7
-6
Competifier.json
Api/components/schemas/Competifier.json
+1
-1
Phase.json
Api/components/schemas/Phase.json
+83
-95
Submission.json
Api/components/schemas/Submission.json
+0
-47
Subscription.json
Api/components/schemas/Subscription.json
+64
-19
No files found.
Api/Competify.API.yaml
View file @
9f96699f
...
...
@@ -122,7 +122,7 @@ paths:
schema
:
type
:
array
items
:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json
/
#/Competition'
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/Competition'
post
:
security
:
-
bearerAuth
:
[]
...
...
@@ -136,8 +136,8 @@ paths:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json
/
#/SoloCompetifier'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json
/
#/TeamCompetifier'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/SoloCompetifier'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/TeamCompetifier'
required
:
true
responses
:
'
200'
:
...
...
@@ -147,8 +147,8 @@ paths:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json
/
#/SoloCompetifier'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json
/
#/TeamCompetifier'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/SoloCompetifier'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/TeamCompetifier'
/competitions/{competitionId}
:
get
:
security
:
...
...
@@ -163,7 +163,7 @@ paths:
content
:
application/json
:
schema
:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json
/
#/Competition'
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/Competition'
delete
:
security
:
-
bearerAuth
:
[]
...
...
@@ -177,7 +177,7 @@ paths:
content
:
application/json
:
schema
:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json
/
#/Competition'
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/Competition'
parameters
:
-
name
:
competitionId
in
:
path
...
...
Api/Competition.API.yaml
View file @
9f96699f
This diff is collapsed.
Click to expand it.
Api/Competition.Adm.API.yaml
View file @
9f96699f
This diff is collapsed.
Click to expand it.
Api/components/schemas.json
View file @
9f96699f
This diff is collapsed.
Click to expand it.
Api/components/schemas/Assessment.json
View file @
9f96699f
...
...
@@ -56,8 +56,9 @@
},
"assignments"
:
{
"type"
:
"array"
,
"description"
:
"Assignment ids"
,
"items"
:
{
"
$ref"
:
"#/Assignment
"
"
type"
:
"integer
"
}
}
},
...
...
@@ -113,23 +114,23 @@
"drafts"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Submission.json#/VirtualAssessmentSubmission
s
Draft"
"$ref"
:
"https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Submission.json#/VirtualAssessmentSubmissionDraft"
}
},
"submissions"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"
#
AssessmentSubmission"
"$ref"
:
"
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Submission.json#/
AssessmentSubmission"
}
},
"currentSubmissions"
:
{
"$ref"
:
"
#
AssessmentSubmission"
"$ref"
:
"
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Submission.json#/
AssessmentSubmission"
},
"assessment"
:
{
"$ref"
:
"#Assessment"
"$ref"
:
"#
/
Assessment"
},
"competifier"
:
{
"$ref"
:
"
#
Competifier"
"$ref"
:
"
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Competifier.json#/
Competifier"
}
}
},
...
...
Api/components/schemas/Competifier.json
View file @
9f96699f
...
...
@@ -20,7 +20,7 @@
"type"
:
"string"
},
"registration"
:
{
"$ref"
:
"https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Sub
miss
ion.json#/Submission"
"$ref"
:
"https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Sub
script
ion.json#/Submission"
},
"tags"
:
{
"type"
:
"array"
,
...
...
Api/components/schemas/Phase.json
View file @
9f96699f
{
"Phase"
:
{
"required"
:
[
"id"
,
"label"
,
"status"
,
"evaluationFormula"
,
"classificationStrategy"
,
"competition"
],
"properties"
:
{
"id"
:
{
"type"
:
"integer"
},
"label"
:
{
"type"
:
"string"
},
"status"
:
{
"type"
:
"string"
,
"enum"
:
[
"PREP"
,
"ONGOING"
,
"EVALUATION"
,
"CLOSED"
]
},
"previous"
:
"integer"
,
"next"
:
"integer"
,
"evaluationFormula"
:
{
"$ref"
:
"#/EvaluationFormula"
},
"classificationStrategy"
:
{
"$ref"
:
"#/ClassificationStrategy"
},
"ranking"
:
{
"$ref"
:
"#/Ranking"
},
"assessments"
:
{
"type"
:
"array"
,
"items"
:
[
{
"$ref"
:
"https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Assessment.json#/Assessment"
}
]
},
"evaluations"
:
{
"type"
:
"array"
,
"items"
:
[
{
"$ref"
:
"#/Ranking"
}
]
},
"events"
:
{
"type"
:
"array"
,
"items"
:
[
{
"$ref"
:
"#/PhaseEvent"
}
]
},
"participations"
:
{
"type"
:
"array"
,
"items"
:
[
{
"$ref"
:
"#/PhaseParticipation"
}
]
},
"competition"
:
{
"$ref"
:
"#/Competition"
}
}
},
"AssessmentConclusionTime"
:
{
"allOf"
:
[
{
...
...
@@ -13,7 +86,7 @@
"required"
:
[
"priority"
],
"allOf"
:
{
"allOf"
:
[
{
"$ref"
:
"#/TieBreakStrategy"
,
"type"
:
"object"
,
"properties"
:
{
...
...
@@ -21,7 +94,7 @@
"type"
:
"integer"
}
}
}
}
]
},
"AssessmentPriorityStrategy"
:
{
"properties"
:
{
...
...
@@ -115,83 +188,6 @@
}
]
},
"Phase"
:
{
"required"
:
[
"id"
,
"label"
,
"status"
,
"evaluationFormula"
,
"classificationStrategy"
,
"competition"
],
"properties"
:
{
"id"
:
{
"type"
:
"integer"
},
"label"
:
{
"type"
:
"string"
},
"status"
:
{
"type"
:
"string"
,
"enum"
:
[
"PREP"
,
"ONGOING"
,
"EVALUATION"
,
"CLOSED"
]
},
"previous"
:
{
"$ref"
:
"#/Phase"
},
"next"
:
{
"$ref"
:
"#/Phase"
},
"evaluationFormula"
:
{
"$ref"
:
"#/EvaluationFormula"
},
"classificationStrategy"
:
{
"$ref"
:
"#/ClassificationStrategy"
},
"ranking"
:
{
"$ref"
:
"#/Ranking"
},
"assessments"
:
{
"type"
:
"array"
,
"items"
:
[
{
"$ref"
:
"https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Assessment.json#/Assessment"
}
]
},
"evaluations"
:
{
"type"
:
"array"
,
"items"
:
[
{
"$ref"
:
"#/Ranking"
}
]
},
"events"
:
{
"type"
:
"array"
,
"items"
:
[
{
"$ref"
:
"#/PhaseEvent"
}
]
},
"participations"
:
{
"type"
:
"array"
,
"items"
:
[
{
"$ref"
:
"#/PhaseParticipation"
}
]
},
"competition"
:
{
"$ref"
:
"#/Competition"
}
}
},
"PhaseEvent"
:
{
"required"
:
[
"timestamp"
,
...
...
@@ -222,9 +218,7 @@
"competifier"
:
{
"$ref"
:
"https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Competifier.json#/Competifier"
},
"phase"
:
{
"$ref"
:
"#/Phase"
},
"phase"
:
"integer"
,
"status"
:
{
"type"
:
"string"
,
"enum"
:
[
...
...
@@ -245,7 +239,7 @@
}
},
"QuestionGroupPriorityStrategy"
:
{
"allOf"
:
{
"allOf"
:
[
{
"$ref"
:
"#/TieBreakStrategy"
,
"type"
:
"object"
,
"properties"
:
{
...
...
@@ -258,7 +252,7 @@
]
}
}
}
}
]
},
"Rank"
:
{
"required"
:
[
...
...
@@ -379,23 +373,17 @@
}
]
},
"phase"
:
{
"phase
s
"
:
{
"type"
:
"array"
,
"items"
:
[
{
"
$ref"
:
"#/Phase
"
"
type"
:
"integer
"
}
]
},
"finalPhase"
:
{
"$ref"
:
"#/Phase"
},
"initialPhase"
:
{
"$ref"
:
"#/Phase"
},
"currentPhase"
:
{
"$ref"
:
"#/Phase"
},
"finalPhase"
:
"integer"
,
"initialPhase"
:
"integer"
,
"currentPhase"
:
"integer"
,
"competifiers"
:
{
"type"
:
"array"
,
"items"
:
[
...
...
Api/components/schemas/Submission.json
View file @
9f96699f
...
...
@@ -188,52 +188,5 @@
"$ref"
:
"https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Assessment.json#/Assignment"
}
}
},
"SubmissionSection"
:
{
"required"
:
[
"type"
,
"template"
],
"properties"
:
{
"type"
:
{
"type"
:
"string"
,
"enum"
:
[
"PARTICIPANT"
,
"TEAM"
]
},
"answers"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/answer"
}
},
"template"
:
{
"$ref"
:
"https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.json#/FormTemplate"
}
},
"discriminator"
:
{
"propertyName"
:
"type"
,
"mapping"
:
{
"PARTICIPANT"
:
"#/ParticipantSubmissionSection"
,
"TEAM"
:
"#/TeamSubmissionSection"
}
}
},
"TeamSubmissionSection"
:
{
"allOf"
:
[
{
"type"
:
"object"
},
{
"$ref"
:
"#/SubmissionSection"
}
]
},
"ParticipantSubmissionSection"
:
{
"allOf"
:
{
"type"
:
"object"
,
"$ref"
:
"#/SubmissionSection"
}
}
}
\ No newline at end of file
Api/components/schemas/Subscription.json
View file @
9f96699f
...
...
@@ -120,9 +120,7 @@
"subject"
:
{
"type"
:
"string"
},
"submission"
:
{
"$ref"
:
"https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Submission.yaml#/Submission"
},
"submission"
:
"integer"
,
"status"
:
{
"type"
:
"string"
,
"enum"
:
[
...
...
@@ -134,10 +132,12 @@
}
},
"SoloSubscription"
:
{
"allOf"
:
{
"type"
:
"object"
,
"$ref"
:
"#/Subscription"
}
"allOf"
:
[
{
"type"
:
"object"
,
"$ref"
:
"#/Subscription"
}
]
},
"Subscription"
:
{
"required"
:
[
...
...
@@ -161,7 +161,7 @@
]
},
"schedule"
:
{
"$ref"
:
"https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Assessment.
yaml
#/ScheduledEvent"
"$ref"
:
"https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Assessment.
json
#/ScheduledEvent"
},
"type"
:
{
"type"
:
"string"
,
...
...
@@ -216,7 +216,7 @@
],
"properties"
:
{
"competition"
:
{
"$ref"
:
"https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.
yaml
#/Competition"
"$ref"
:
"https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.
json
#/Competition"
},
"timestamp"
:
{
"type"
:
"number"
...
...
@@ -231,7 +231,7 @@
"sections"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Submission.yaml
#/SubmissionSection"
"$ref"
:
"#/SubmissionSection"
}
},
"invitations"
:
{
...
...
@@ -253,37 +253,82 @@
"required"
:
[
"team"
],
"allOf"
:
{
"allOf"
:
[
{
"type"
:
"object"
,
"$ref"
:
"#/Submission"
,
"properties"
:
{
"team"
:
{
"$ref"
:
"https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Submission.yaml#/TeamSubmissionSection"
},
"leader"
:
{
"$ref"
:
"https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Submission.yaml#/ParticipantSubmissionSection"
"$ref"
:
"#/TeamSubmissionSection"
},
"participants"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Submission.yaml
#/ParticipantSubmissionSection"
"$ref"
:
"#/ParticipantSubmissionSection"
}
}
}
}
}
]
},
"SoloSubmission"
:
{
"required"
:
[
"participant"
],
"allOf"
:
{
"allOf"
:
[
{
"type"
:
"object"
,
"$ref"
:
"#/Submission"
,
"properties"
:
{
"participant"
:
{
"$ref"
:
"
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Submission.yaml
#/ParticipantSubmissionSection"
"$ref"
:
"#/ParticipantSubmissionSection"
}
}
}]
},
"SubmissionSection"
:
{
"required"
:
[
"type"
,
"template"
],
"properties"
:
{
"type"
:
{
"type"
:
"string"
,
"enum"
:
[
"PARTICIPANT"
,
"TEAM"
]
},
"answers"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/FormFieldAnswer"
}
},
"template"
:
{
"$ref"
:
"https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.json#/FormTemplate"
}
},
"discriminator"
:
{
"propertyName"
:
"type"
,
"mapping"
:
{
"PARTICIPANT"
:
"#/ParticipantSubmissionSection"
,
"TEAM"
:
"#/TeamSubmissionSection"
}
}
},
"TeamSubmissionSection"
:
{
"allOf"
:
[
{
"type"
:
"object"
},
{
"$ref"
:
"#/SubmissionSection"
}
]
},
"ParticipantSubmissionSection"
:
{
"allOf"
:
[{
"type"
:
"object"
,
"$ref"
:
"#/SubmissionSection"
}]
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment