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
6b882ec5
Commit
6b882ec5
authored
Jun 27, 2018
by
Gabriel Macena
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[API] Refatora rotas de Assessments
parent
7d5ea61c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
87 deletions
+13
-87
Competition.Adm.API.yaml
Api/Competition.Adm.API.yaml
+13
-87
No files found.
Api/Competition.Adm.API.yaml
View file @
6b882ec5
...
...
@@ -33,6 +33,8 @@ tags:
description
:
'
Subscription
operations'
-
name
:
phases
description
:
'
Phase
operations'
-
name
:
assessments
description
:
'
Assessment
operations'
-
name
:
exams
description
:
'
Exam
operations'
paths
:
...
...
@@ -827,20 +829,6 @@ paths:
application/json
:
schema
:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Ranking'
'
/phases/{phaseId}/participations'
:
get
:
tags
:
-
phases
summary
:
Retrieves all Participations for the Phase
responses
:
'
200'
:
description
:
'
'
content
:
application/json
:
schema
:
type
:
array
items
:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/PhaseParticipation'
parameters
:
-
name
:
phaseId
in
:
path
...
...
@@ -894,10 +882,10 @@ paths:
schema
:
format
:
int32
type
:
integer
'
/
phases/{phaseId}/
assessments/{assessmentId}'
:
'
/assessments/{assessmentId}'
:
get
:
tags
:
-
phase
s
-
assessment
s
summary
:
Retrieves the specific assessment
responses
:
'
200'
:
...
...
@@ -909,45 +897,17 @@ paths:
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'
patch
:
tags
:
-
phases
summary
:
Updates the specific assessment
requestBody
:
content
:
application/json-patch+json
:
schema
:
type
:
array
items
:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/JsonPatch'
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/#/HandmadeAssessment'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessment'
parameters
:
-
name
:
phaseId
in
:
path
required
:
true
schema
:
format
:
int32
type
:
integer
-
name
:
assessmentId
in
:
path
required
:
true
schema
:
format
:
int32
type
:
integer
'
/
phases/{phaseId}/
assessments/{assessmentId}/submissions'
:
'
/assessments/{assessmentId}/submissions'
:
get
:
tags
:
-
phase
s
-
assessment
s
summary
:
Retrieves all submissions
responses
:
'
200'
:
...
...
@@ -955,50 +915,22 @@ 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'
post
:
tags
:
-
phases
summary
:
Creates a new submission
requestBody
:
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'
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/#/HandmadeAssessmentSubmission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessmentSubmission'
type
:
array
items
:
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'
parameters
:
-
name
:
phaseId
in
:
path
required
:
true
schema
:
format
:
int32
type
:
integer
-
name
:
assessmentId
in
:
path
required
:
true
schema
:
format
:
int32
type
:
integer
'
/
phases/{phaseId}/
assessments/{assessmentId}/submissions/{submissionId}'
:
'
/assessments/{assessmentId}/submissions/{submissionId}'
:
get
:
tags
:
-
phase
s
-
assessment
s
summary
:
Retrieves the specific submission
responses
:
'
200'
:
...
...
@@ -1011,12 +943,6 @@ paths:
-
$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'
parameters
:
-
name
:
phaseId
in
:
path
required
:
true
schema
:
format
:
int32
type
:
integer
-
name
:
assessmentId
in
:
path
required
:
true
...
...
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