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
Show 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:
...
@@ -248,12 +248,12 @@ paths:
schema
:
schema
:
format
:
int32
format
:
int32
type
:
integer
type
:
integer
/subscription/
applicant
s
:
/subscription/
submission
s
:
get
:
get
:
tags
:
tags
:
-
subscription
-
subscription
summary
:
Retrieves all
applicant
s for this competition
summary
:
Retrieves all
submission
s for this competition
description
:
Retrieves all
applicant
s for this competition.
description
:
Retrieves all
submission
s for this competition.
responses
:
responses
:
'
200'
:
'
200'
:
description
:
'
'
description
:
'
'
...
@@ -262,20 +262,22 @@ paths:
...
@@ -262,20 +262,22 @@ paths:
schema
:
schema
:
type
:
array
type
:
array
items
:
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
:
post
:
tags
:
tags
:
-
subscription
-
subscription
summary
:
Creates a
n applicat
ion for the competition
summary
:
Creates a
submiss
ion for the competition
description
:
Creates a new
applicat
ion for the competition.
description
:
Creates a new
submiss
ion for the competition.
requestBody
:
requestBody
:
content
:
content
:
application/json
:
application/json
:
schema
:
schema
:
type
:
object
type
:
object
oneOf
:
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/#/SoloSubscription
Submission
'
-
$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/#/TeamSubscription
Submission
'
required
:
true
required
:
true
responses
:
responses
:
'
200'
:
'
200'
:
...
@@ -285,13 +287,13 @@ paths:
...
@@ -285,13 +287,13 @@ paths:
schema
:
schema
:
type
:
object
type
:
object
oneOf
:
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/#/SoloSubscriptionSubmiss
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/#/TeamSubscriptionSubmiss
ion'
patch
:
patch
:
tags
:
tags
:
-
subscription
-
subscription
summary
:
Updates multiple
Applicat
ions
summary
:
Updates multiple
Submiss
ions
description
:
Updates multiple
Applicat
ions.
description
:
Updates multiple
Submiss
ions.
requestBody
:
requestBody
:
content
:
content
:
application/json-schema+json
:
application/json-schema+json
:
...
@@ -299,8 +301,8 @@ paths:
...
@@ -299,8 +301,8 @@ paths:
type
:
array
type
:
array
items
:
items
:
oneOf
:
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/#/SoloSubscription
Submission
'
-
$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/#/TeamSubscription
Submission
'
required
:
true
required
:
true
responses
:
responses
:
'
200'
:
'
200'
:
...
@@ -311,9 +313,9 @@ paths:
...
@@ -311,9 +313,9 @@ paths:
type
:
array
type
:
array
items
:
items
:
oneOf
:
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/#/SoloSubscription
Submission
'
-
$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/#/TeamSubscription
Submission
'
'
/subscription/
applicants/{applicant
Id}'
:
'
/subscription/
submissions/{submission
Id}'
:
get
:
get
:
tags
:
tags
:
-
subscription
-
subscription
...
@@ -327,10 +329,10 @@ paths:
...
@@ -327,10 +329,10 @@ paths:
schema
:
schema
:
type
:
object
type
:
object
oneOf
:
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/#/SoloSubscription
Submission
'
-
$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/#/TeamSubscription
Submission
'
parameters
:
parameters
:
-
name
:
applicant
Id
-
name
:
submission
Id
in
:
path
in
:
path
description
:
The unique identifier of the application.
description
:
The unique identifier of the application.
required
:
true
required
:
true
...
@@ -358,8 +360,8 @@ paths:
...
@@ -358,8 +360,8 @@ paths:
schema
:
schema
:
type
:
object
type
:
object
oneOf
:
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/#/SoloSubscription
Submission
'
-
$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/#/TeamSubscription
Submission
'
/subscription
:
/subscription
:
get
:
get
:
tags
:
tags
:
...
@@ -393,22 +395,24 @@ paths:
...
@@ -393,22 +395,24 @@ paths:
content
:
content
:
application/json
:
application/json
:
schema
:
schema
:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SubscriptionRule'
oneOf
:
/subscription/templates
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloSubscriptionRule'
get
:
-
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSubscriptionRule'
tags
:
# /subscription/templates:
-
public
# get:
summary
:
Retrieves all form templates
# tags:
responses
:
# - public
'
200'
:
# summary: Retrieves all form templates
description
:
'
'
# responses:
content
:
# '200':
application/json
:
# description: ''
schema
:
# content:
type
:
array
# application/json:
items
:
# schema:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/FormTemplate'
# type: array
/subscription/templates/team
:
# items:
# $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/FormTemplate'
/subscription/team-template
:
get
:
get
:
tags
:
tags
:
-
public
-
public
...
@@ -439,7 +443,7 @@ paths:
...
@@ -439,7 +443,7 @@ paths:
application/json
:
application/json
:
schema
:
schema
:
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/FormTemplate'
$ref
:
'
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/FormTemplate'
/subscription/
templates/participant
:
/subscription/
participant-template
:
get
:
get
:
tags
:
tags
:
-
public
-
public
...
...
Api/components/schemas.yaml
View file @
ff49cd5f
...
@@ -124,15 +124,15 @@ SoloSubscriptionRule:
...
@@ -124,15 +124,15 @@ SoloSubscriptionRule:
TeamSubscriptionRule
:
TeamSubscriptionRule
:
$ref
:
>-
$ref
:
>-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/TeamSubscriptionRule
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/TeamSubscriptionRule
Subscription
:
Subscription
Submission
:
$ref
:
>-
$ref
:
>-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/Subscription
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/Subscription
Submission
SoloSubscription
:
SoloSubscription
Submission
:
$ref
:
>-
$ref
:
>-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/SoloSubscription
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/SoloSubscription
Submission
TeamSubscription
:
TeamSubscription
Submission
:
$ref
:
>-
$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
:
FormTemplate
:
$ref
:
>-
$ref
:
>-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.yaml/#/FormTemplate
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:
...
@@ -36,7 +36,7 @@ SubscriptionRule:
mapping
:
mapping
:
-
SOLO
:
'
#/SoloSubscriptionRule'
-
SOLO
:
'
#/SoloSubscriptionRule'
-
TEAM
:
'
#/TeamSubscriptionRule'
-
TEAM
:
'
#/TeamSubscriptionRule'
Subscription
:
Subscription
Submission
:
required
:
required
:
-
status
-
status
-
timestamp
-
timestamp
...
@@ -61,18 +61,18 @@ Subscription:
...
@@ -61,18 +61,18 @@ Subscription:
discriminator
:
discriminator
:
propertyName
:
type
propertyName
:
type
mapping
:
mapping
:
TEAM
:
'
#/TeamSubscription'
TEAM
:
'
#/TeamSubscription
Submission
'
SOLO
:
'
#/SoloSubscription'
SOLO
:
'
#/SoloSubscription
Submission
'
SoloSubscription
:
SoloSubscription
Submission
:
allOf
:
allOf
:
-
$ref
:
'
#/Subscription'
-
$ref
:
'
#/Subscription
Submission
'
-
type
:
object
-
type
:
object
properties
:
properties
:
participant
:
participant
:
$ref
:
'
#/FormSection'
$ref
:
'
#/FormSection'
TeamSubscription
:
TeamSubscription
Submission
:
allOf
:
allOf
:
-
$ref
:
'
#/Subscription'
-
$ref
:
'
#/Subscription
Submission
'
-
type
:
object
-
type
:
object
properties
:
properties
:
team
:
team
:
...
@@ -135,6 +135,8 @@ FormAnswer:
...
@@ -135,6 +135,8 @@ FormAnswer:
type
:
integer
type
:
integer
value
:
value
:
type
:
string
type
:
string
error
:
type
:
string
oid
:
oid
:
type
:
integer
type
:
integer
FormSection
:
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