Commit d38ff61d authored by bernardosunderhus's avatar bernardosunderhus

[API] Troca declaração de headers por parametros

parent 0877424e
...@@ -27,11 +27,6 @@ paths: ...@@ -27,11 +27,6 @@ paths:
- authentication - authentication
summary: Sends a payload to try to login into the application summary: Sends a payload to try to login into the application
requestBody: requestBody:
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
content: content:
application/json: application/json:
schema: schema:
...@@ -45,11 +40,6 @@ paths: ...@@ -45,11 +40,6 @@ paths:
required: true required: true
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: Returns a JWT token description: Returns a JWT token
content: content:
application/json: application/json:
...@@ -64,11 +54,6 @@ paths: ...@@ -64,11 +54,6 @@ paths:
summary: Retrieves all messages from the competifier summary: Retrieves all messages from the competifier
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: '' description: ''
content: content:
application/json: application/json:
...@@ -85,11 +70,6 @@ paths: ...@@ -85,11 +70,6 @@ paths:
summary: Retrieves one message from a competifier summary: Retrieves one message from a competifier
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: '' description: ''
content: content:
application/json: application/json:
...@@ -103,11 +83,6 @@ paths: ...@@ -103,11 +83,6 @@ paths:
summary: Updates the message read state summary: Updates the message read state
description: The only attribute allowed to be altered is read description: The only attribute allowed to be altered is read
requestBody: requestBody:
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
content: content:
application/json: application/json:
schema: schema:
...@@ -115,11 +90,6 @@ paths: ...@@ -115,11 +90,6 @@ paths:
required: true required: true
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: '' description: ''
content: content:
application/json: application/json:
...@@ -140,11 +110,6 @@ paths: ...@@ -140,11 +110,6 @@ paths:
summary: Retrieves all assessments summary: Retrieves all assessments
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: '' description: ''
content: content:
application/json: application/json:
...@@ -163,11 +128,6 @@ paths: ...@@ -163,11 +128,6 @@ paths:
summary: Retrives an Assessment summary: Retrives an Assessment
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: Successfully retrieved assessment description: Successfully retrieved assessment
content: content:
application/json: application/json:
...@@ -190,11 +150,6 @@ paths: ...@@ -190,11 +150,6 @@ paths:
summary: Retrives all submissions from an assessment summary: Retrives all submissions from an assessment
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: Successfully retrieved all submissions from an assessment description: Successfully retrieved all submissions from an assessment
content: content:
application/json: application/json:
...@@ -230,11 +185,6 @@ paths: ...@@ -230,11 +185,6 @@ paths:
- assessments - assessments
summary: Creates or updates a submission from an assessment summary: Creates or updates a submission from an assessment
requestBody: requestBody:
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
content: content:
application/json: application/json:
schema: schema:
...@@ -256,11 +206,6 @@ paths: ...@@ -256,11 +206,6 @@ paths:
required: true required: true
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: Successfully created the submission description: Successfully created the submission
content: content:
application/json: application/json:
...@@ -281,11 +226,6 @@ paths: ...@@ -281,11 +226,6 @@ paths:
summary: Retrieves a single submission from an assessment summary: Retrieves a single submission from an assessment
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: '' description: ''
content: content:
application/json: application/json:
...@@ -325,11 +265,6 @@ paths: ...@@ -325,11 +265,6 @@ paths:
summary: Retrives all questions from an assessment summary: Retrives all questions from an assessment
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: '' description: ''
content: content:
application/json: application/json:
...@@ -354,11 +289,6 @@ paths: ...@@ -354,11 +289,6 @@ paths:
summary: Retrieves single question from a given assessment summary: Retrieves single question from a given assessment
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: '' description: ''
content: content:
application/json: application/json:
...@@ -386,11 +316,6 @@ paths: ...@@ -386,11 +316,6 @@ paths:
summary: Retrieves statement from a question summary: Retrieves statement from a question
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: '' description: ''
content: content:
application/json: application/json:
...@@ -416,11 +341,6 @@ paths: ...@@ -416,11 +341,6 @@ paths:
summary: Retrieves alternatives from an objective question summary: Retrieves alternatives from an objective question
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: '' description: ''
content: content:
application/json: application/json:
...@@ -448,11 +368,6 @@ paths: ...@@ -448,11 +368,6 @@ paths:
summary: Retrieves all drafts summary: Retrieves all drafts
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: '' description: ''
content: content:
application/json: application/json:
...@@ -469,11 +384,6 @@ paths: ...@@ -469,11 +384,6 @@ paths:
- assessments - assessments
summary: Creates or overrides an existing draft summary: Creates or overrides an existing draft
requestBody: requestBody:
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
content: content:
application/json: application/json:
schema: schema:
...@@ -482,11 +392,6 @@ paths: ...@@ -482,11 +392,6 @@ paths:
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessmentSubmission' - $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/VirtualAssessmentSubmission'
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: '' description: ''
content: content:
application/json: application/json:
...@@ -520,11 +425,6 @@ paths: ...@@ -520,11 +425,6 @@ paths:
summary: Retrieves a draft summary: Retrieves a draft
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: '' description: ''
content: content:
application/json: application/json:
...@@ -541,11 +441,6 @@ paths: ...@@ -541,11 +441,6 @@ paths:
summary: Retrieves the Assessment Submission Evaluation. summary: Retrieves the Assessment Submission Evaluation.
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: '' description: ''
content: content:
application/json: application/json:
...@@ -566,11 +461,6 @@ paths: ...@@ -566,11 +461,6 @@ paths:
summary: Retrives competifier summary: Retrives competifier
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: '' description: ''
content: content:
application/json: application/json:
...@@ -586,11 +476,6 @@ paths: ...@@ -586,11 +476,6 @@ paths:
summary: Updates competifier summary: Updates competifier
description: All except password description: All except password
requestBody: requestBody:
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
content: content:
application/json: application/json:
schema: schema:
...@@ -598,11 +483,6 @@ paths: ...@@ -598,11 +483,6 @@ paths:
required: true required: true
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: '' description: ''
content: content:
application/json: application/json:
...@@ -620,11 +500,6 @@ paths: ...@@ -620,11 +500,6 @@ paths:
description: only valid if the competifier is of type TEAM description: only valid if the competifier is of type TEAM
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: '' description: ''
content: content:
application/json: application/json:
...@@ -641,11 +516,6 @@ paths: ...@@ -641,11 +516,6 @@ paths:
summary: Retrieves a single participant from a competifier summary: Retrieves a single participant from a competifier
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: '' description: ''
content: content:
application/json: application/json:
...@@ -658,11 +528,6 @@ paths: ...@@ -658,11 +528,6 @@ paths:
- competifier - competifier
summary: Updates participant summary: Updates participant
requestBody: requestBody:
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
content: content:
application/json: application/json:
schema: schema:
...@@ -671,11 +536,6 @@ paths: ...@@ -671,11 +536,6 @@ paths:
$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':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: '' description: ''
content: content:
application/json: application/json:
...@@ -696,11 +556,6 @@ paths: ...@@ -696,11 +556,6 @@ paths:
summary: Retrieves all phases summary: Retrieves all phases
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: '' description: ''
content: content:
application/json: application/json:
...@@ -717,11 +572,6 @@ paths: ...@@ -717,11 +572,6 @@ paths:
summary: Retrieves a specific phase summary: Retrieves a specific phase
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: '' description: ''
content: content:
application/json: application/json:
...@@ -742,11 +592,6 @@ paths: ...@@ -742,11 +592,6 @@ paths:
summary: Retrieves the last ranking of a given Phase summary: Retrieves the last ranking of a given Phase
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: '' description: ''
content: content:
application/json: application/json:
...@@ -769,11 +614,6 @@ paths: ...@@ -769,11 +614,6 @@ paths:
summary: Retrieves the Competifier's Rank summary: Retrieves the Competifier's Rank
responses: responses:
'200': '200':
headers:
Accept-Language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language
Competition-Token:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Competition-Token
description: >- description: >-
Must return the Classification Rule, the Evaluation Rule and Must return the Classification Rule, the Evaluation Rule and
evaluations. evaluations.
......
Competition-Token:
description: The token that identifies the endpoint
schema:
type: integer
Accept-Language:
description: The desired language
schema:
type: string
language:
name: Accept-Language
in: header
description: preferred language
required: false
schema:
type: string
style: simple
...@@ -11,9 +11,9 @@ NotFoundError: ...@@ -11,9 +11,9 @@ NotFoundError:
type: string type: string
completeMessage: completeMessage:
type: string type: string
headers: parameters:
Accept-Language: language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/parameters.yaml/#/language'
InternalServerError: InternalServerError:
description: Internal Server Error description: Internal Server Error
content: content:
...@@ -27,6 +27,6 @@ InternalServerError: ...@@ -27,6 +27,6 @@ InternalServerError:
type: string type: string
completeMessage: completeMessage:
type: string type: string
headers: parameters:
Accept-Language: language:
$ref: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/headers.yaml/#/Accept-Language $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/parameters.yaml/#/language'
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