Commit f4d54ae8 authored by Rosana Aurélio's avatar Rosana Aurélio

[API] Inclusão de rota na API do adm para associar resposta correta à determinada questão.

parent 47fae602
......@@ -300,7 +300,6 @@ paths:
schema:
format: int32
type: integer
delete:
tags:
- exams
......@@ -309,6 +308,29 @@ paths:
responses:
'200':
description: 'Successfully deleted'
/exams/{examId}/questions/{questionId}/answer:
patch:
tags:
- exams
summary: Update a question setting its correct answer
description: Updates questions of a exam
requestBody:
content:
application/json:
schema:
type: array
items:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Question'
required: true
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
oneOf:
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Question'
/exams/{examId}/groups:
get:
tags:
......
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