Commit cbea0bb5 authored by bernardosunderhus's avatar bernardosunderhus

[API] Cria arquivo para separar API's da competição

parent 245d087f
......@@ -206,27 +206,6 @@ paths:
items:
$ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/AssessmentSubmission
examples:
Dummy Submissions:
value: |-
[
{
"answers": [
{
"choice": 0,
"freeText": "",
"question": 0
}
],
"assessment": 0,
"finishedAt": "date-time",
"lastUpdate": "date-time",
"startedAt": "date-time",
"status": 0,
"type": 0,
"uploadUri": ""
}
]
'500':
$ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/responses.yaml/#/InternalServerError
......@@ -240,20 +219,6 @@ paths:
schema:
$ref: >-
https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/AssessmentSubmission
examples:
Dummy Submission Post:
value:
answers:
- choice: 0
freeText: null
question: 0
assessment: 0
finishedAt: date-time
lastUpdate: date-time
startedAt: date-time
status: 0
type: 0
uploadUri: null
required: true
responses:
'200':
......
openapi: 3.0.0
info:
title: Competition Admin API
description: Competition Admin API
version: 0.1.0
description: >-
Api of the competition administration. This API should be used by the competify
application to control the competition itself
version: 1.0.0
tags:
- name: admin
description: 'Competition admin operations'
......@@ -916,9 +918,9 @@ paths:
application/json-patch+json:
schema:
type: object
oneOf:
- $ref: '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'
oneOf:
- $ref: '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'
required: true
responses:
'200':
......
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