Commit a051b4a7 authored by bernardosunderhus's avatar bernardosunderhus

Merge branch 'master' of gitlab.dev.evologica.com.br:Competify/Docs

parents a58891df 2c1796b1
...@@ -4,8 +4,10 @@ info: ...@@ -4,8 +4,10 @@ info:
description: Competition Admin API description: Competition Admin API
version: 0.1.0 version: 0.1.0
tags: tags:
- name: config - name: admin
description: 'Subscription configuration operations' description: 'Competition admin operations'
- name: public
description: 'Public operations'
- name: subscription - name: subscription
description: 'Subscription operations' description: 'Subscription operations'
- name: phases - name: phases
...@@ -13,8 +15,23 @@ tags: ...@@ -13,8 +15,23 @@ tags:
- name: exams - name: exams
description: 'Exam operations' description: 'Exam operations'
paths: 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: /competifiers:
get: get:
tags:
- public
summary: Retrieves all Competifiers for this competition summary: Retrieves all Competifiers for this competition
description: Retrieves all Competifiers for this competition. description: Retrieves all Competifiers for this competition.
responses: responses:
...@@ -29,6 +46,8 @@ paths: ...@@ -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/#/SoloCompetifier'
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamCompetifier' - $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamCompetifier'
post: post:
tags:
- admin
summary: Creates a new Competifier for the competition summary: Creates a new Competifier for the competition
description: Creates a new Competifier for the competition. description: Creates a new Competifier for the competition.
requestBody: requestBody:
...@@ -332,7 +351,7 @@ paths: ...@@ -332,7 +351,7 @@ paths:
/subscription: /subscription:
get: get:
tags: tags:
- config - public
summary: Retrieves the subscription rule summary: Retrieves the subscription rule
responses: responses:
'200': '200':
...@@ -345,7 +364,7 @@ paths: ...@@ -345,7 +364,7 @@ paths:
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSubscriptionRule' - $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamSubscriptionRule'
patch: patch:
tags: tags:
- config - admin
summary: Updates the subscription rule summary: Updates the subscription rule
requestBody: requestBody:
content: content:
...@@ -362,10 +381,10 @@ paths: ...@@ -362,10 +381,10 @@ paths:
application/json: application/json:
schema: schema:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SubscriptionRule' $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SubscriptionRule'
/subscription/template: /subscription/templates:
get: get:
tags: tags:
- config - public
summary: Retrieves all form templates summary: Retrieves all form templates
responses: responses:
'200': '200':
...@@ -376,10 +395,10 @@ paths: ...@@ -376,10 +395,10 @@ paths:
type: array type: array
items: items:
$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/template/team: /subscription/templates/team:
get: get:
tags: tags:
- config - public
summary: Retrieves the team form template summary: Retrieves the team form template
responses: responses:
'200': '200':
...@@ -390,7 +409,7 @@ paths: ...@@ -390,7 +409,7 @@ paths:
$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'
patch: patch:
tags: tags:
- config - admin
summary: Updates the team form template summary: Updates the team form template
requestBody: requestBody:
content: content:
...@@ -407,10 +426,10 @@ paths: ...@@ -407,10 +426,10 @@ 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/template/participant: /subscription/templates/participant:
get: get:
tags: tags:
- config - public
summary: Retrieves the participant form template summary: Retrieves the participant form template
responses: responses:
'200': '200':
...@@ -421,7 +440,7 @@ paths: ...@@ -421,7 +440,7 @@ paths:
$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'
patch: patch:
tags: tags:
- config - admin
summary: Updates the participant form template summary: Updates the participant form template
requestBody: requestBody:
content: content:
...@@ -539,23 +558,6 @@ paths: ...@@ -539,23 +558,6 @@ paths:
type: array type: array
items: items:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Rank' $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: parameters:
- name: phaseId - name: phaseId
in: path in: path
...@@ -563,50 +565,6 @@ paths: ...@@ -563,50 +565,6 @@ paths:
schema: schema:
format: int32 format: int32
type: integer 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': '/phases/{phaseId}/participations':
get: get:
tags: tags:
......
SoloSubscriptionRule:
$ref: '#/SubscriptionRule'
TeamSubscriptionRule:
allOf:
- $ref: '#/SubscriptionRule'
- type: object
properties:
minMembers:
type: integer
maxMembers:
type: integer
SubscriptionRule: SubscriptionRule:
required: required:
- type - type
- status - status
properties: properties:
type: type:
description: '{SOLO, TEAM}' type: string
type: integer enum:
- SOLO
- TEAM
status: status:
description: '{PREP, OPEN, CLOSED}' type: string
type: integer enum:
- PREP
- OPEN
- CLOSED
oid: oid:
type: integer type: integer
minMembers: discriminator:
type: integer propertyName: type
maxMembers: mapping:
type: integer - SOLO: '#/SoloSubscriptionRule'
- TEAM: '#/TeamSubscriptionRule'
Subscription: Subscription:
required: required:
- status - status
...@@ -83,6 +100,8 @@ FormField: ...@@ -83,6 +100,8 @@ FormField:
type: boolean type: boolean
required: required:
type: boolean type: boolean
removable:
type: boolean
oid: oid:
type: integer type: integer
FormAnswer: 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