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

[API] Correção API competify

parent a7f27f28
......@@ -23,8 +23,8 @@ tags:
description: 'User operations'
- name: competition
description: 'Competition admin operations'
- name: assessments
description: 'Assessments operations'
# - name: assessments
# description: 'Assessments operations'
paths:
/login:
post:
......
......@@ -149,7 +149,7 @@ paths:
content:
application/json:
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:
get:
......@@ -400,14 +400,14 @@ paths:
summary: Updates status of the assignment
description: The only attribute allowed to be altered is read
requestBody:
required: true
content:
application/json:
schema:
type: object
oneOf:
- $ref: 'htps://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'
required: true
responses:
'200':
description: ''
......@@ -535,13 +535,11 @@ paths:
summary: Sync the progress for the assignment
description: Sync the progress for the assignment
requestBody:
required: true
content:
application/json:
schema:
type: object
oneOf:
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/VirtualAssessmentSubmissionDraft'
required: true
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/VirtualAssessmentSubmissionDraft'
responses:
'200':
description: ''
......@@ -633,11 +631,10 @@ paths:
content:
application/json:
schema:
type: object
anyOf:
- $ref: >-
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#/SubjectiveQuestion"
- $ref: "https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.json#/ObjectiveQuestion"
'500':
$ref: >-
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