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
6a754cca
Commit
6a754cca
authored
Jul 11, 2018
by
Rosana Aurélio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[API] Correções nos schemas e API.
parent
d0124af2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
45 deletions
+22
-45
Competition.Adm.API.yaml
Api/Competition.Adm.API.yaml
+16
-39
Phase.yaml
Api/components/schemas/Phase.yaml
+1
-1
Submission.yaml
Api/components/schemas/Submission.yaml
+5
-5
No files found.
Api/Competition.Adm.API.yaml
View file @
6a754cca
...
...
@@ -68,30 +68,6 @@ paths:
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'
post
:
tags
:
-
admin
summary
:
Creates a new Competifier for the competition
description
:
Creates a new Competifier for the competition.
requestBody
:
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'
required
:
true
responses
:
'
200'
:
description
:
'
'
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'
/exams
:
get
:
tags
:
...
...
@@ -145,11 +121,9 @@ paths:
description
:
Updates the specified Exam.
requestBody
:
content
:
application/json
-patch+json
:
application/json
:
schema
:
type
:
array
items
:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/JsonPatch'
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Exam'
required
:
true
responses
:
'
200'
:
...
...
@@ -276,7 +250,8 @@ paths:
schema
:
type
:
array
items
:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Question'
-
$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'
required
:
true
responses
:
'
200'
:
...
...
@@ -285,6 +260,14 @@ paths:
application/json
:
schema
:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Question'
delete
:
tags
:
-
exams
summary
:
Delete a question group of a exam
description
:
Delete a question group of a exam.
responses
:
'
200'
:
description
:
'
Successfully
deleted'
parameters
:
-
name
:
examId
in
:
path
...
...
@@ -300,14 +283,6 @@ paths:
schema
:
format
:
int32
type
:
integer
delete
:
tags
:
-
exams
summary
:
Delete a question group of a exam
description
:
Delete a question group of a exam.
responses
:
'
200'
:
description
:
'
Successfully
deleted'
/exams/{examId}/questions/{questionId}/answer
:
patch
:
tags
:
...
...
@@ -320,7 +295,8 @@ paths:
schema
:
type
:
array
items
:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Question'
-
$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'
required
:
true
responses
:
'
200'
:
...
...
@@ -330,7 +306,8 @@ paths:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Question'
-
$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'
/exams/{examId}/groups
:
get
:
tags
:
...
...
Api/components/schemas/Phase.yaml
View file @
6a754cca
...
...
@@ -172,7 +172,7 @@ PhaseEvent:
PhaseParticipation
:
properties
:
competifier
:
$ref
:
'
#/Competifier'
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Competifier.yaml/
#/Competifier'
phase
:
$ref
:
'
#/Phase'
status
:
...
...
Api/components/schemas/Submission.yaml
View file @
6a754cca
...
...
@@ -28,7 +28,7 @@ AssessmentSubmission:
type
:
number
description
:
Last time this submission was modified
assignment
:
$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'
type
:
type
:
string
enum
:
...
...
@@ -47,7 +47,7 @@ AssessmentSubmissionEvaluation:
type
:
number
format
:
float
submission
:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Assessment.yaml/#AssessmentSubmission'
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Assessment.yaml/#
/
AssessmentSubmission'
grades
:
type
:
array
items
:
...
...
@@ -155,9 +155,9 @@ SubmissionSection:
answers
:
type
:
array
items
:
$ref
:
'
#/answer
s
'
$ref
:
'
#/answer'
template
:
$ref
:
'
#/FormTemplate'
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/
#/FormTemplate'
discriminator
:
propertyName
:
type
mapping
:
...
...
@@ -181,7 +181,7 @@ TeamSubmission:
TeamSubmissionSection
:
allOf
:
-
type
:
object
-
$ref
:
'
#SubmissionSection'
-
$ref
:
'
#
/
SubmissionSection'
ParticipantSubmissionSection
:
allOf
:
type
:
object
...
...
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