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
4a156d3c
Commit
4a156d3c
authored
Jul 12, 2018
by
Rosana Aurélio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[API] Correção api submission
parent
c9bb66ca
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
69 additions
and
60 deletions
+69
-60
Competition.API.yaml
Api/Competition.API.yaml
+4
-4
Competition.Adm.API.yaml
Api/Competition.Adm.API.yaml
+8
-8
schemas.yaml
Api/components/schemas.yaml
+4
-4
Submission.yaml
Api/components/schemas/Submission.yaml
+1
-44
Subscription.yaml
Api/components/schemas/Subscription.yaml
+52
-0
No files found.
Api/Competition.API.yaml
View file @
4a156d3c
...
...
@@ -202,8 +202,8 @@ paths:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSub
scriptionSub
mission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSub
scriptionSub
mission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSubmission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSubmission'
required
:
true
responses
:
'
200'
:
...
...
@@ -213,8 +213,8 @@ paths:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSub
scriptionSub
mission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSub
scriptionSub
mission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSubmission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSubmission'
/assessments
:
parameters
:
-
$ref
:
>-
...
...
Api/Competition.Adm.API.yaml
View file @
4a156d3c
...
...
@@ -187,8 +187,8 @@ paths:
type
:
array
items
:
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSub
scriptionSub
mission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSub
scriptionSub
mission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSubmission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSubmission'
/subscription/submissions/{submissionId}
:
get
:
tags
:
...
...
@@ -203,8 +203,8 @@ paths:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSub
scriptionSub
mission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSub
scriptionSub
mission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSubmission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSubmission'
parameters
:
-
name
:
submissionId
in
:
path
...
...
@@ -225,8 +225,8 @@ paths:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSub
scriptionSub
mission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSub
scriptionSub
mission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSubmission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSubmission'
required
:
true
responses
:
'
200'
:
...
...
@@ -236,8 +236,8 @@ paths:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSub
scriptionSub
mission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSub
scriptionSub
mission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSubmission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSubmission'
parameters
:
-
name
:
submissionId
in
:
path
...
...
Api/components/schemas.yaml
View file @
4a156d3c
...
...
@@ -130,12 +130,12 @@ TeamSubscription:
SubscriptionSubmission
:
$ref
:
>-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/SubscriptionSubmission
SoloSub
scriptionSub
mission
:
SoloSubmission
:
$ref
:
>-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/SoloSub
scriptionSub
mission
TeamSub
scriptionSub
mission
:
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/SoloSubmission
TeamSubmission
:
$ref
:
>-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/TeamSub
scriptionSub
mission
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/TeamSubmission
Invitation
:
$ref
:
>-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/Invitation
...
...
Api/components/schemas/Submission.yaml
View file @
4a156d3c
...
...
@@ -114,34 +114,6 @@ VirtualAssessmentSubmissionDraft:
type
:
string
assessment
:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Assessment.yaml/#/Assignment'
Submission
:
required
:
-
timestamp
-
type
-
status
properties
:
competition
:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.yaml/#/Competition'
timestamp
:
type
:
number
type
:
type
:
string
enum
:
-
SOLO
-
TEAM
sections
:
type
:
array
items
:
$ref
:
'
#/SubmissionSection'
invitations
:
type
:
array
items
:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/Invitation'
discriminator
:
propertyName
:
type
mapping
:
SOLO
:
'
#/SoloSubmission'
TEAM
:
'
#/TeamSubmission'
SubmissionSection
:
required
:
-
type
...
...
@@ -163,21 +135,6 @@ SubmissionSection:
mapping
:
PARTICIPANT
:
'
#/ParticipantSubmissionSection'
TEAM
:
'
#/TeamSubmissionSection'
TeamSubmission
:
required
:
-
team
allOf
:
-
type
:
object
-
$ref
:
'
#/Submission'
properties
:
team
:
$ref
:
'
#/TeamSubmissionSection'
leader
:
$ref
:
'
#/ParticipantSubmissionSection'
participants
:
type
:
array
items
:
$ref
:
'
#/ParticipantSubmissionSection'
TeamSubmissionSection
:
allOf
:
-
type
:
object
...
...
@@ -185,4 +142,4 @@ TeamSubmissionSection:
ParticipantSubmissionSection
:
allOf
:
type
:
object
$ref
:
'
#/SubmissionSection'
\ No newline at end of file
$ref
:
'
#/SubmissionSection'
Api/components/schemas/Subscription.yaml
View file @
4a156d3c
...
...
@@ -141,3 +141,55 @@ TeamSubscription:
type
:
integer
maxMembers
:
type
:
integer
Submission
:
required
:
-
timestamp
-
type
-
status
properties
:
competition
:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.yaml/#/Competition'
timestamp
:
type
:
number
type
:
type
:
string
enum
:
-
SOLO
-
TEAM
sections
:
type
:
array
items
:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Submission.yaml/#/SubmissionSection'
invitations
:
type
:
array
items
:
$ref
:
'
#/Invitation'
discriminator
:
propertyName
:
type
mapping
:
SOLO
:
'
#/SoloSubmission'
TEAM
:
'
#/TeamSubmission'
TeamSubmission
:
required
:
-
team
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'
participants
:
type
:
array
items
:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Submission.yaml/#/ParticipantSubmissionSection'
SoloSubmission
:
required
:
-
participant
allOf
:
-
type
:
object
-
$ref
:
'
#/Submission'
properties
:
participant
:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Submission.yaml/#/ParticipantSubmissionSection'
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