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
245d087f
Commit
245d087f
authored
May 15, 2018
by
bernardosunderhus
Committed by
Bernardo Lucas Almeida Sunderhus
May 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[API] Conserto dos mapping por enumerado
parent
9354acba
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
16 deletions
+52
-16
Competify.yaml
Api/Competify.yaml
+24
-3
Competition.yaml
Api/Competition.yaml
+5
-0
Assessment.yaml
Api/components/schemas/Assessment.yaml
+2
-2
Exam.yaml
Api/components/schemas/Exam.yaml
+6
-3
Phase.yaml
Api/components/schemas/Phase.yaml
+3
-3
Subscription.yaml
Api/components/schemas/Subscription.yaml
+12
-5
No files found.
Api/Competify.yaml
View file @
245d087f
...
...
@@ -54,6 +54,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloCompetifier'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamCompetifier'
...
...
@@ -64,6 +65,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloCompetifier'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamCompetifier'
...
...
@@ -167,6 +169,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/ObjectiveQuestion'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SubjectiveQuestion'
...
...
@@ -177,6 +180,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/ObjectiveQuestion'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SubjectiveQuestion'
...
...
@@ -200,6 +204,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/ObjectiveQuestion'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SubjectiveQuestion'
...
...
@@ -222,6 +227,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/ObjectiveQuestion'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SubjectiveQuestion'
...
...
@@ -264,6 +270,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSubscription'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSubscription'
...
...
@@ -274,6 +281,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSubscription'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSubscription'
...
...
@@ -315,6 +323,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSubscription'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSubscription'
...
...
@@ -345,6 +354,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSubscription'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSubscription'
...
...
@@ -359,6 +369,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSubscriptionRule'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSubscriptionRule'
...
...
@@ -753,6 +764,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/HandmadeAssessment'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessment'
...
...
@@ -763,6 +775,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/HandmadeAssessment'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessment'
...
...
@@ -784,6 +797,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/HandmadeAssessment'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessment'
...
...
@@ -805,6 +819,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/HandmadeAssessment'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessment'
...
...
@@ -888,6 +903,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/HandmadeAssessmentSubmission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessmentSubmission'
...
...
@@ -899,6 +915,7 @@ paths:
content
:
application/json-patch+json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/HandmadeAssessmentSubmission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessmentSubmission'
...
...
@@ -909,6 +926,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/HandmadeAssessmentSubmission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessmentSubmission'
...
...
@@ -936,6 +954,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/HandmadeAssessmentSubmission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessmentSubmission'
...
...
@@ -1007,6 +1026,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/MinimumPerformance'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/BestRanked'
...
...
@@ -1028,6 +1048,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/MinimumPerformance'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/BestRanked'
...
...
Api/Competition.yaml
View file @
245d087f
...
...
@@ -172,6 +172,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
>-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessment
...
...
@@ -489,6 +490,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
>-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/HandmadeAssessmentSubmission
...
...
@@ -523,6 +525,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
>-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/HandmadeAssessmentSubmission
...
...
@@ -573,6 +576,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
>-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloCompetifier
...
...
@@ -599,6 +603,7 @@ paths:
content
:
application/json
:
schema
:
type
:
object
oneOf
:
-
$ref
:
>-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloCompetifier
...
...
Api/components/schemas/Assessment.yaml
View file @
245d087f
...
...
@@ -62,8 +62,8 @@ Assessment:
discriminator
:
propertyName
:
type
mapping
:
0
:
'
#/VirtualAssessment'
1
:
'
#/HandmadeAssessment'
VIRTUAL
:
'
#/VirtualAssessment'
HANDMADE
:
'
#/HandmadeAssessment'
VirtualAssessment
:
required
:
-
enforceSequence
...
...
Api/components/schemas/Exam.yaml
View file @
245d087f
...
...
@@ -31,7 +31,10 @@ Question:
properties
:
type
:
description
:
Inheritance type identifcation
type
:
integer
type
:
string
enum
:
-
SUBJECTIVE
-
OBJECTIVE
statement
:
$ref
:
'
#/QuestionStatement'
oid
:
...
...
@@ -55,8 +58,8 @@ Question:
discriminator
:
propertyName
:
type
mapping
:
0
:
'
#/SubjectiveQuestion'
1
:
'
#/ObjectiveQuestion'
SUBJECTIVE
:
'
#/SubjectiveQuestion'
OBJECTIVE
:
'
#/ObjectiveQuestion'
SubjectiveQuestion
:
allOf
:
-
$ref
:
'
#/Question'
...
...
Api/components/schemas/Phase.yaml
View file @
245d087f
...
...
@@ -9,7 +9,7 @@ Competition:
oid
:
type
:
integer
subscriptionConf
:
$ref
:
'
#/SubscriptionRule'
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/
#/SubscriptionRule'
Phase
:
required
:
-
label
...
...
@@ -98,8 +98,8 @@ ClassificationRule:
discriminator
:
propertyName
:
type
mapping
:
'
0'
:
'
#/BestRanked'
'
1'
:
'
#/MinimumPerformance'
BEST_RANKED
:
'
#/BestRanked'
MINIMUM_PERFORMANCE
:
'
#/MinimumPerformance'
EvaluationRule
:
required
:
-
expression
...
...
Api/components/schemas/Subscription.yaml
View file @
245d087f
...
...
@@ -57,8 +57,8 @@ Subscription:
discriminator
:
propertyName
:
type
mapping
:
'
0'
:
'
#/TeamSubscription'
'
1'
:
'
#/SoloSubscription'
TEAM
:
'
#/TeamSubscription'
SOLO
:
'
#/SoloSubscription'
SoloSubscription
:
allOf
:
-
$ref
:
'
#/Subscription'
...
...
@@ -83,7 +83,10 @@ FormTemplate:
-
type
properties
:
type
:
type
:
integer
type
:
string
enum
:
-
TEAM
-
PARTICIPANT
fields
:
type
:
array
items
:
...
...
@@ -100,7 +103,10 @@ FormField:
label
:
type
:
string
type
:
type
:
integer
type
:
string
enum
:
-
TEXT
-
DATE
unique
:
type
:
boolean
required
:
...
...
@@ -141,4 +147,5 @@ FormSection:
oid
:
type
:
integer
type
:
type
:
integer
type
:
string
enum
:
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