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

Inclusão de rotas para grupo de questões, inclusão de rota para excluir grupo...

Inclusão de rotas para grupo de questões, inclusão de rota para excluir grupo e inclusão de rota 'patch' para um exame.
parent 292e3d87
......@@ -156,6 +156,18 @@ paths:
application/json:
schema:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Exam'
delete:
tags:
- exams
summary: Delete an exam
description: Delete an exam.
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Exam'
parameters:
- name: examId
in: path
......@@ -163,8 +175,8 @@ paths:
required: true
schema:
format: int32
type: integer
'/exams/{examId}/questions':
type: integer
/exams/{examId}/questions:
get:
tags:
- exams
......@@ -205,6 +217,28 @@ paths:
oneOf:
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/ObjectiveQuestion'
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SubjectiveQuestion'
patch:
tags:
- exams
summary: Updates questions of a exam
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'
parameters:
- name: examId
in: path
......@@ -213,7 +247,7 @@ paths:
schema:
format: int32
type: integer
'/exams/{examId}/questions/{questionId}':
/exams/{examId}/questions/{questionId}:
get:
tags:
- exams
......@@ -236,11 +270,11 @@ paths:
description: Updates the specific Question of the Exam.
requestBody:
content:
application/json-patch+json:
application/json:
schema:
type: array
items:
$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/#/Question'
required: true
responses:
'200':
......@@ -248,10 +282,7 @@ paths:
content:
application/json:
schema:
type: object
oneOf:
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/ObjectiveQuestion'
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/SubjectiveQuestion'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/Question'
parameters:
- name: examId
in: path
......@@ -267,6 +298,114 @@ paths:
schema:
format: int32
type: integer
/exams/{examId}/groups:
get:
tags:
- exams
summary: Retrieves all question groups of a exam
description: Retrieves all question groups of a exam
responses:
'200':
description: ''
content:
application/json:
schema:
type: array
items:
oneOf:
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/QuestionGroup'
post:
tags:
- exams
summary: Create a question group for a exam
description: Create a question group for a exam
requestBody:
content:
application/json:
schema:
type: object
oneOf:
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/QuestionGroup'
required: true
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/QuestionGroup'
parameters:
- name: examId
in: path
description: The unique identifier of the Exam.
required: true
schema:
format: int32
type: integer
/exams/{examId}/groups/{groupId}:
get:
tags:
- exams
summary: Retrieves a specific question group of a exam
description: Retrieves a specific question of a exam
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/QuestionGroup'
patch:
tags:
- exams
summary: Updates a question group of a exam
description: Updates a question group of a exam
requestBody:
content:
application/json:
schema:
type: array
items:
oneOf:
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/QuestionGroup'
required: true
responses:
'200':
description: ''
content:
application/json:
schema:
type: array
items:
oneOf:
- $ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/QuestionGroup'
delete:
tags:
- exams
summary: Delete a question group of a exam
description: Delete a question group of a exam.
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas.yaml/#/QuestionGroup'
parameters:
- name: examId
in: path
description: The unique identifier of the Exam.
required: true
schema:
format: int32
type: integer
- name: groupId
in: path
description: The unique identifier of the Exam.
required: true
schema:
format: int32
type: integer
/subscription/submissions:
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