Commit 2737eef7 authored by Rosana Aurélio's avatar Rosana Aurélio

[API] Correção API competify

parent a7f27f28
...@@ -23,8 +23,8 @@ tags: ...@@ -23,8 +23,8 @@ tags:
description: 'User operations' description: 'User operations'
- name: competition - name: competition
description: 'Competition admin operations' description: 'Competition admin operations'
- name: assessments # - name: assessments
description: 'Assessments operations' # description: 'Assessments operations'
paths: paths:
/login: /login:
post: post:
...@@ -186,7 +186,7 @@ paths: ...@@ -186,7 +186,7 @@ paths:
schema: schema:
format: int32 format: int32
type: integer type: integer
/competitions/{competitionId}/token: /competitions/{competitionId}/token:
get: get:
security: security:
......
...@@ -149,7 +149,7 @@ paths: ...@@ -149,7 +149,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.json#/Competition' $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Competition.json#/Competition'
/subscription: /subscription:
get: get:
...@@ -395,32 +395,32 @@ paths: ...@@ -395,32 +395,32 @@ paths:
schema: schema:
type: integer type: integer
patch: patch:
tags: tags:
- assignments - assignments
summary: Updates status of the assignment summary: Updates status of the assignment
description: The only attribute allowed to be altered is read description: The only attribute allowed to be altered is read
requestBody: requestBody:
content: required: true
application/json: content:
schema: application/json:
type: object schema:
oneOf: type: object
- $ref: 'htps://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/VirtualAssessment' oneOf:
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/HandmadeAssessment' - $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/VirtualAssessment'
required: true - $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/HandmadeAssessment'
responses: responses:
'200': '200':
description: '' description: ''
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.json#/VirtualAssessment' - $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/VirtualAssessment'
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/HandmadeAssessment' - $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/HandmadeAssessment'
'500': '500':
$ref: >- $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.json#/InternalServerError https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.json#/InternalServerError
/assignments/{assignmentId}: /assignments/{assignmentId}:
parameters: parameters:
- $ref: >- - $ref: >-
...@@ -530,29 +530,27 @@ paths: ...@@ -530,29 +530,27 @@ paths:
$ref: >- $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.json#/InternalServerError https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.json#/InternalServerError
patch: patch:
tags: tags:
- assignments - assignments
summary: Sync the progress for the assignment summary: Sync the progress for the assignment
description: Sync the progress for the assignment description: Sync the progress for the assignment
requestBody: requestBody:
content: required: true
application/json: content:
schema: application/json:
type: object schema:
oneOf: $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/VirtualAssessmentSubmissionDraft'
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/VirtualAssessmentSubmissionDraft' responses:
required: true '200':
responses: description: ''
'200': content:
description: '' application/json:
content: schema:
application/json: $ref: >-
schema: https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/VirtualAssessmentSubmissionDraft
$ref: >- '500':
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/VirtualAssessmentSubmissionDraft $ref: >-
'500': https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.json#/InternalServerError
$ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.json#/InternalServerError
/assignments/{assignmentId}/exam: /assignments/{assignmentId}/exam:
parameters: parameters:
- $ref: >- - $ref: >-
...@@ -633,11 +631,10 @@ paths: ...@@ -633,11 +631,10 @@ paths:
content: content:
application/json: application/json:
schema: schema:
type: object
anyOf: anyOf:
- $ref: >- - $ref: "https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/SubjectiveQuestion"
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/SubjectiveQuestion - $ref: "https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/ObjectiveQuestion"
- $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/ObjectiveQuestion
'500': '500':
$ref: >- $ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.json#/InternalServerError https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.json#/InternalServerError
......
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