Commit 7674ffbe authored by Gabriel Macena's avatar Gabriel Macena

[API] Inclui rota de Competition e altera as tags de operações de Template

parent 42e4afa5
......@@ -4,8 +4,10 @@ info:
description: Competition Admin API
version: 0.1.0
tags:
- name: config
description: 'Subscription configuration operations'
- name: admin
description: 'Competition admin operations'
- name: public
description: 'Public operations'
- name: subscription
description: 'Subscription operations'
- name: phases
......@@ -13,8 +15,23 @@ tags:
- name: exams
description: 'Exam operations'
paths:
/competition:
get:
tags:
- public
summary: Retrieves information about this competition
description: Retrieves information about this competition.
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Competition'
/competifiers:
get:
tags:
- public
summary: Retrieves all Competifiers for this competition
description: Retrieves all Competifiers for this competition.
responses:
......@@ -29,6 +46,8 @@ paths:
- $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:
......@@ -332,7 +351,7 @@ paths:
/subscription:
get:
tags:
- config
- public
summary: Retrieves the subscription rule
responses:
'200':
......@@ -343,7 +362,7 @@ paths:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SubscriptionRule'
patch:
tags:
- config
- admin
summary: Updates the subscription rule
requestBody:
content:
......@@ -363,7 +382,7 @@ paths:
/subscription/templates:
get:
tags:
- config
- public
summary: Retrieves all form templates
responses:
'200':
......@@ -377,7 +396,7 @@ paths:
/subscription/templates/team:
get:
tags:
- config
- public
summary: Retrieves the team form template
responses:
'200':
......@@ -388,7 +407,7 @@ paths:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/FormTemplate'
patch:
tags:
- config
- admin
summary: Updates the team form template
requestBody:
content:
......@@ -408,7 +427,7 @@ paths:
/subscription/templates/participant:
get:
tags:
- config
- public
summary: Retrieves the participant form template
responses:
'200':
......@@ -419,7 +438,7 @@ paths:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/FormTemplate'
patch:
tags:
- config
- admin
summary: Updates the participant form template
requestBody:
content:
......@@ -537,23 +556,6 @@ paths:
type: array
items:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Rank'
# post:
# tags:
# - phases
# summary: Creates a new Ranking for the Phase
# requestBody:
# content:
# application/json:
# schema:
# $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Ranking'
# required: true
# responses:
# '200':
# description: ''
# content:
# application/json:
# schema:
# $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Ranking'
parameters:
- name: phaseId
in: path
......@@ -561,50 +563,6 @@ paths:
schema:
format: int32
type: integer
# '/phases/{phaseId}/rankings/{rankingId}':
# get:
# tags:
# - phases
# summary: Retrieves the specific Ranking
# responses:
# '200':
# description: ''
# content:
# application/json:
# schema:
# $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Ranking'
# patch:
# tags:
# - phases
# summary: Updates the specific Ranking
# 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:
# $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Ranking'
# parameters:
# - name: phaseId
# in: path
# required: true
# schema:
# format: int32
# type: integer
# - name: rankingId
# in: path
# required: true
# schema:
# format: int32
# type: integer
'/phases/{phaseId}/participations':
get:
tags:
......
......@@ -83,6 +83,8 @@ FormField:
type: boolean
required:
type: boolean
removable:
type: boolean
oid:
type: integer
FormAnswer:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment