Commit 1cb1e2bc authored by bernardosunderhus's avatar bernardosunderhus

[API] Adiciona parametros padrões para todas rotas

parent 30903a10
...@@ -3,7 +3,8 @@ info: ...@@ -3,7 +3,8 @@ info:
title: Competition API title: Competition API
version: 1.0.0 version: 1.0.0
description: >- description: >-
Api of the competition. This API should be used by the competition application to perform assessments Api of the competition. This API should be used by the competition
application to perform assessments
contact: contact:
name: Documentation name: Documentation
url: 'https://gitlab.dev.evologica.com.br/Competify/Docs' url: 'https://gitlab.dev.evologica.com.br/Competify/Docs'
...@@ -20,7 +21,9 @@ tags: ...@@ -20,7 +21,9 @@ tags:
- name: authentication - name: authentication
description: Operations involving the user authentication description: Operations involving the user authentication
paths: paths:
/login: '/login':
parameters:
- $ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/parameters.yaml/#/language
post: post:
tags: tags:
- authentication - authentication
...@@ -45,8 +48,11 @@ paths: ...@@ -45,8 +48,11 @@ paths:
schema: schema:
type: string type: string
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
/competifier/messages: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
'/competifier/messages':
parameters:
- $ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/parameters.yaml/#/language
get: get:
tags: tags:
- competifier - competifier
...@@ -59,10 +65,19 @@ paths: ...@@ -59,10 +65,19 @@ paths:
schema: schema:
type: array type: array
items: items:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Message' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Message
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
'/competifier/messages/{messageId}': '/competifier/messages/{messageId}':
parameters:
- $ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/parameters.yaml/#/language
- name: messageId
in: path
required: true
schema:
type: integer
get: get:
tags: tags:
- competifier - competifier
...@@ -73,9 +88,11 @@ paths: ...@@ -73,9 +88,11 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Message' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Message
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
patch: patch:
tags: tags:
- competifier - competifier
...@@ -85,7 +102,8 @@ paths: ...@@ -85,7 +102,8 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/JsonPatch' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/JsonPatch
required: true required: true
responses: responses:
'200': '200':
...@@ -93,16 +111,14 @@ paths: ...@@ -93,16 +111,14 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Message' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Message
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
'/assessments':
parameters: parameters:
- name: messageId - $ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/parameters.yaml/#/language
in: path
required: true
schema:
type: integer
/assessments:
get: get:
tags: tags:
- assessments - assessments
...@@ -116,11 +132,21 @@ paths: ...@@ -116,11 +132,21 @@ paths:
type: array type: array
items: items:
oneOf: oneOf:
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessment' - $ref: >-
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/HandmadeAssessment' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessment
- $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/HandmadeAssessment
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
'/assessments/{assessmentId}': '/assessments/{assessmentId}':
parameters:
- $ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/parameters.yaml/#/language
- name: assessmentId
in: path
required: true
schema:
type: integer
get: get:
tags: tags:
- assessments - assessments
...@@ -132,17 +158,21 @@ paths: ...@@ -132,17 +158,21 @@ paths:
application/json: application/json:
schema: schema:
oneOf: oneOf:
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessment' - $ref: >-
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/HandmadeAssessment' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessment
- $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/HandmadeAssessment
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
'/assessments/{assessmentId}/submissions':
parameters: parameters:
- $ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/parameters.yaml/#/language
- name: assessmentId - name: assessmentId
in: path in: path
required: true required: true
schema: schema:
type: integer type: integer
'/assessments/{assessmentId}/submissions':
get: get:
tags: tags:
- assessments - assessments
...@@ -155,7 +185,8 @@ paths: ...@@ -155,7 +185,8 @@ paths:
schema: schema:
type: array type: array
items: items:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/AssessmentSubmission' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/AssessmentSubmission
examples: examples:
Dummy Submissions: Dummy Submissions:
value: |- value: |-
...@@ -178,7 +209,8 @@ paths: ...@@ -178,7 +209,8 @@ paths:
} }
] ]
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
post: post:
tags: tags:
- assessments - assessments
...@@ -187,7 +219,8 @@ paths: ...@@ -187,7 +219,8 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/AssessmentSubmission' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/AssessmentSubmission
examples: examples:
Dummy Submission Post: Dummy Submission Post:
value: value:
...@@ -209,16 +242,24 @@ paths: ...@@ -209,16 +242,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/#/AssessmentSubmission' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/AssessmentSubmission
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
'/assessments/{assessmentId}/submissions/{submissionId}':
parameters: parameters:
- $ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/parameters.yaml/#/language
- name: assessmentId - name: assessmentId
in: path in: path
required: true required: true
schema: schema:
type: integer type: integer
'/assessments/{assessmentId}/submissions/{submissionId}': - name: submissionId
in: path
required: true
schema:
type: integer
get: get:
tags: tags:
- assessments - assessments
...@@ -229,7 +270,8 @@ paths: ...@@ -229,7 +270,8 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/AssessmentSubmission' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/AssessmentSubmission
examples: examples:
Dummy Submission: Dummy Submission:
value: value:
...@@ -245,19 +287,16 @@ paths: ...@@ -245,19 +287,16 @@ paths:
type: 0 type: 0
uploadUri: null uploadUri: null
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
'/assessments/{assessmentId}/questions':
parameters: parameters:
- $ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/parameters.yaml/#/language
- name: assessmentId - name: assessmentId
in: path in: path
required: true required: true
schema: schema:
type: integer type: integer
- name: submissionId
in: path
required: true
schema:
type: integer
'/assessments/{assessmentId}/questions':
get: get:
tags: tags:
- assessments - assessments
...@@ -271,17 +310,26 @@ paths: ...@@ -271,17 +310,26 @@ paths:
type: array type: array
items: items:
anyOf: anyOf:
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/ObjectiveQuestion' - $ref: >-
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SubjectiveQuestion' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/ObjectiveQuestion
- $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SubjectiveQuestion
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
'/assessments/{assessmentId}/questions/{questionId}':
parameters: parameters:
- $ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/parameters.yaml/#/language
- name: assessmentId - name: assessmentId
in: path in: path
required: true required: true
schema: schema:
type: integer type: integer
'/assessments/{assessmentId}/questions/{questionId}': - name: questionId
in: path
required: true
schema:
type: integer
get: get:
tags: tags:
- assessments - assessments
...@@ -293,11 +341,16 @@ paths: ...@@ -293,11 +341,16 @@ paths:
application/json: application/json:
schema: schema:
anyOf: anyOf:
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SubjectiveQuestion' - $ref: >-
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/ObjectiveQuestion' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SubjectiveQuestion
- $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/ObjectiveQuestion
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
'/assessments/{assessmentId}/questions/{questionId}/statement':
parameters: parameters:
- $ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/parameters.yaml/#/language
- name: assessmentId - name: assessmentId
in: path in: path
required: true required: true
...@@ -308,7 +361,6 @@ paths: ...@@ -308,7 +361,6 @@ paths:
required: true required: true
schema: schema:
type: integer type: integer
'/assessments/{assessmentId}/questions/{questionId}/statement':
get: get:
tags: tags:
- assessments - assessments
...@@ -319,10 +371,14 @@ paths: ...@@ -319,10 +371,14 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/QuestionStatement' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/QuestionStatement
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
'/assessments/{assessmentId}/questions/{questionId}/alternatives':
parameters: parameters:
- $ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/parameters.yaml/#/language
- name: assessmentId - name: assessmentId
in: path in: path
required: true required: true
...@@ -333,7 +389,6 @@ paths: ...@@ -333,7 +389,6 @@ paths:
required: true required: true
schema: schema:
type: integer type: integer
'/assessments/{assessmentId}/questions/{questionId}/alternatives':
get: get:
tags: tags:
- assessments - assessments
...@@ -346,21 +401,19 @@ paths: ...@@ -346,21 +401,19 @@ paths:
schema: schema:
type: array type: array
items: items:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Alternative' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Alternative
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
'/assessments/{assessmentId}/drafts':
parameters: parameters:
- $ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/parameters.yaml/#/language
- name: assessmentId - name: assessmentId
in: path in: path
required: true required: true
schema: schema:
type: integer type: integer
- name: questionId
in: path
required: true
schema:
type: integer
'/assessments/{assessmentId}/drafts':
get: get:
tags: tags:
- assessments - assessments
...@@ -374,10 +427,13 @@ paths: ...@@ -374,10 +427,13 @@ paths:
type: array type: array
items: items:
oneOf: oneOf:
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/HandmadeAssessmentSubmission' - $ref: >-
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessmentSubmission' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/HandmadeAssessmentSubmission
- $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessmentSubmission
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
post: post:
tags: tags:
- assessments - assessments
...@@ -387,8 +443,10 @@ paths: ...@@ -387,8 +443,10 @@ paths:
application/json: application/json:
schema: schema:
oneOf: oneOf:
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/HandmadeAssessmentSubmission' - $ref: >-
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessmentSubmission' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/HandmadeAssessmentSubmission
- $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessmentSubmission
responses: responses:
'200': '200':
description: '' description: ''
...@@ -396,18 +454,16 @@ paths: ...@@ -396,18 +454,16 @@ paths:
application/json: application/json:
schema: schema:
oneOf: oneOf:
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/HandmadeAssessmentSubmission' - $ref: >-
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessmentSubmission' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/HandmadeAssessmentSubmission
- $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessmentSubmission
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
parameters: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
- name: assessmentId
in: path
required: true
schema:
type: integer
'/assessments/{assessmentId}/drafts/{draftId}': '/assessments/{assessmentId}/drafts/{draftId}':
parameters: parameters:
- $ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/parameters.yaml/#/language
- name: assessmentId - name: assessmentId
in: path in: path
required: true required: true
...@@ -429,11 +485,21 @@ paths: ...@@ -429,11 +485,21 @@ paths:
application/json: application/json:
schema: schema:
oneOf: oneOf:
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/HandmadeAssessmentSubmission' - $ref: >-
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessmentSubmission' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/HandmadeAssessmentSubmission
- $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessmentSubmission
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
'/assessments/{assessmentId}/evaluation': '/assessments/{assessmentId}/evaluation':
parameters:
- $ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/parameters.yaml/#/language
- name: assessmentId
in: path
required: true
schema:
type: integer
get: get:
tags: tags:
- assessments - assessments
...@@ -444,16 +510,14 @@ paths: ...@@ -444,16 +510,14 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/AssessmentSubmissionEvaluation' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/AssessmentSubmissionEvaluation
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
'/competifier':
parameters: parameters:
- name: assessmentId - $ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/parameters.yaml/#/language
in: path
required: true
schema:
type: integer
/competifier:
get: get:
tags: tags:
- competifier - competifier
...@@ -465,10 +529,13 @@ paths: ...@@ -465,10 +529,13 @@ paths:
application/json: application/json:
schema: schema:
oneOf: oneOf:
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloCompetifier' - $ref: >-
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamCompetifier' 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
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
patch: patch:
tags: tags:
- competifier - competifier
...@@ -478,7 +545,8 @@ paths: ...@@ -478,7 +545,8 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/JsonPatch' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/JsonPatch
required: true required: true
responses: responses:
'200': '200':
...@@ -487,11 +555,16 @@ paths: ...@@ -487,11 +555,16 @@ paths:
application/json: application/json:
schema: schema:
oneOf: oneOf:
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SoloCompetifier' - $ref: >-
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/TeamCompetifier' 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
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
/competifier/participants: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
'/competifier/participants':
parameters:
- $ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/parameters.yaml/#/language
get: get:
tags: tags:
- competifier - competifier
...@@ -505,10 +578,19 @@ paths: ...@@ -505,10 +578,19 @@ paths:
schema: schema:
type: array type: array
items: items:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Participant' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Participant
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
'/competifier/participants/{participantId}': '/competifier/participants/{participantId}':
parameters:
- $ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/parameters.yaml/#/language
- name: participantId
in: path
required: true
schema:
type: integer
get: get:
tags: tags:
- competifier - competifier
...@@ -519,9 +601,11 @@ paths: ...@@ -519,9 +601,11 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Participant' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Participant
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
patch: patch:
tags: tags:
- competifier - competifier
...@@ -532,23 +616,22 @@ paths: ...@@ -532,23 +616,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/#/JsonPatch' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/JsonPatch
responses: responses:
'200': '200':
description: '' description: ''
content: content:
application/json: application/json:
schema: schema:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Participant' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Participant
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
'/phases':
parameters: parameters:
- name: participantId - $ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/parameters.yaml/#/language
in: path
required: true
schema:
type: integer
/phases:
get: get:
tags: tags:
- phases - phases
...@@ -561,10 +644,19 @@ paths: ...@@ -561,10 +644,19 @@ paths:
schema: schema:
type: array type: array
items: items:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Phase' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Phase
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
'/phases/{phaseId}': '/phases/{phaseId}':
parameters:
- $ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/parameters.yaml/#/language
- name: phaseId
in: path
required: true
schema:
type: integer
get: get:
tags: tags:
- phases - phases
...@@ -575,16 +667,19 @@ paths: ...@@ -575,16 +667,19 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Phase' $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Phase
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
parameters: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
- name: phaseId
in: path
required: true
schema:
type: integer
'/phases/{phaseId}/ranking': '/phases/{phaseId}/ranking':
parameters:
- $ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/parameters.yaml/#/language
- name: phaseId
in: path
required: true
schema:
type: integer
get: get:
tags: tags:
- phases - phases
...@@ -597,16 +692,19 @@ paths: ...@@ -597,16 +692,19 @@ paths:
schema: schema:
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
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
parameters: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
- name: phaseId
in: path
required: true
schema:
type: integer
'/phases/{phaseId}/ranking/me': '/phases/{phaseId}/ranking/me':
parameters:
- $ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/parameters.yaml/#/language
- name: phaseId
in: path
required: true
schema:
type: integer
get: get:
tags: tags:
- phases - phases
...@@ -619,15 +717,11 @@ paths: ...@@ -619,15 +717,11 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$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
'500': '500':
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError' $ref: >-
parameters: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
- name: phaseId
in: path
required: true
schema:
type: integer
components: components:
securitySchemes: securitySchemes:
COMPETITION_TOKEN: COMPETITION_TOKEN:
......
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