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
ff49cd5f
Commit
ff49cd5f
authored
May 17, 2018
by
Gabriel Macena
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[API] Refatora rotas de Subscription e corrige os nomes das entidades
parent
5f338820
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
115 additions
and
107 deletions
+115
-107
CompetitionAdm.yaml
Api/CompetitionAdm.yaml
+43
-39
schemas.yaml
Api/components/schemas.yaml
+6
-6
Subscription.yaml
Api/components/schemas/Subscription.yaml
+9
-7
Competify.mdj
uml/Competify.mdj
+57
-55
No files found.
Api/CompetitionAdm.yaml
View file @
ff49cd5f
...
...
@@ -248,12 +248,12 @@ paths:
schema
:
format
:
int32
type
:
integer
/subscription/
applicant
s
:
/subscription/
submission
s
:
get
:
tags
:
-
subscription
summary
:
Retrieves all
applicant
s for this competition
description
:
Retrieves all
applicant
s for this competition.
summary
:
Retrieves all
submission
s for this competition
description
:
Retrieves all
submission
s for this competition.
responses
:
'
200'
:
description
:
'
'
...
...
@@ -262,20 +262,22 @@ paths:
schema
:
type
:
array
items
:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Subscription'
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSubscriptionSubmission'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSubscriptionSubmission'
post
:
tags
:
-
subscription
summary
:
Creates a
n applicat
ion for the competition
description
:
Creates a new
applicat
ion for the competition.
summary
:
Creates a
submiss
ion for the competition
description
:
Creates a new
submiss
ion 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/#/SoloSubscription'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSubscription'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSubscription
Submission
'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSubscription
Submission
'
required
:
true
responses
:
'
200'
:
...
...
@@ -285,13 +287,13 @@ paths:
schema
:
type
:
object
oneOf
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSubscript
ion'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSubscript
ion'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSubscriptionSubmiss
ion'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSubscriptionSubmiss
ion'
patch
:
tags
:
-
subscription
summary
:
Updates multiple
Applicat
ions
description
:
Updates multiple
Applicat
ions.
summary
:
Updates multiple
Submiss
ions
description
:
Updates multiple
Submiss
ions.
requestBody
:
content
:
application/json-schema+json
:
...
...
@@ -299,8 +301,8 @@ paths:
type
:
array
items
:
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'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSubscription
Submission
'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSubscription
Submission
'
required
:
true
responses
:
'
200'
:
...
...
@@ -311,9 +313,9 @@ paths:
type
:
array
items
:
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'
'
/subscription/
applicants/{applicant
Id}'
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSubscription
Submission
'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSubscription
Submission
'
'
/subscription/
submissions/{submission
Id}'
:
get
:
tags
:
-
subscription
...
...
@@ -327,10 +329,10 @@ paths:
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'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSubscription
Submission
'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSubscription
Submission
'
parameters
:
-
name
:
applicant
Id
-
name
:
submission
Id
in
:
path
description
:
The unique identifier of the application.
required
:
true
...
...
@@ -358,8 +360,8 @@ paths:
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'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSubscription
Submission
'
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSubscription
Submission
'
/subscription
:
get
:
tags
:
...
...
@@ -393,22 +395,24 @@ paths:
content
:
application/json
:
schema
:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SubscriptionRule'
/subscription/templates
:
get
:
tags
:
-
public
summary
:
Retrieves all form templates
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/#/FormTemplate'
/subscription/templates/team
:
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'
# /subscription/templates:
# get:
# tags:
# - public
# summary: Retrieves all form templates
# 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/#/FormTemplate'
/subscription/team-template
:
get
:
tags
:
-
public
...
...
@@ -439,7 +443,7 @@ paths:
application/json
:
schema
:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/FormTemplate'
/subscription/
templates/participant
:
/subscription/
participant-template
:
get
:
tags
:
-
public
...
...
Api/components/schemas.yaml
View file @
ff49cd5f
...
...
@@ -124,15 +124,15 @@ SoloSubscriptionRule:
TeamSubscriptionRule
:
$ref
:
>-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/TeamSubscriptionRule
Subscription
:
Subscription
Submission
:
$ref
:
>-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/Subscription
SoloSubscription
:
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/Subscription
Submission
SoloSubscription
Submission
:
$ref
:
>-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/SoloSubscription
TeamSubscription
:
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/SoloSubscription
Submission
TeamSubscription
Submission
:
$ref
:
>-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/TeamSubscription
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/TeamSubscription
Submission
FormTemplate
:
$ref
:
>-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/FormTemplate
...
...
Api/components/schemas/Subscription.yaml
View file @
ff49cd5f
...
...
@@ -36,7 +36,7 @@ SubscriptionRule:
mapping
:
-
SOLO
:
'
#/SoloSubscriptionRule'
-
TEAM
:
'
#/TeamSubscriptionRule'
Subscription
:
Subscription
Submission
:
required
:
-
status
-
timestamp
...
...
@@ -61,18 +61,18 @@ Subscription:
discriminator
:
propertyName
:
type
mapping
:
TEAM
:
'
#/TeamSubscription'
SOLO
:
'
#/SoloSubscription'
SoloSubscription
:
TEAM
:
'
#/TeamSubscription
Submission
'
SOLO
:
'
#/SoloSubscription
Submission
'
SoloSubscription
Submission
:
allOf
:
-
$ref
:
'
#/Subscription'
-
$ref
:
'
#/Subscription
Submission
'
-
type
:
object
properties
:
participant
:
$ref
:
'
#/FormSection'
TeamSubscription
:
TeamSubscription
Submission
:
allOf
:
-
$ref
:
'
#/Subscription'
-
$ref
:
'
#/Subscription
Submission
'
-
type
:
object
properties
:
team
:
...
...
@@ -135,6 +135,8 @@ FormAnswer:
type
:
integer
value
:
type
:
string
error
:
type
:
string
oid
:
type
:
integer
FormSection
:
...
...
uml/Competify.mdj
View file @
ff49cd5f
This diff is collapsed.
Click to expand it.
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