Commit cf543a25 authored by bernardosunderhus's avatar bernardosunderhus

[API] Adicionado arquivo da api do competifier

parent c68b85ee
This diff is collapsed.
...@@ -5,9 +5,11 @@ info: ...@@ -5,9 +5,11 @@ info:
version: 0.1.0 version: 0.1.0
tags: tags:
- name: competifier - name: competifier
description: Competifier operations description: Operations involving the competifier
- name: assessments - name: assessments
description: Operations involving assessments description: Operations involving the assessments
- name: phases
description: Operations involving the phases
paths: paths:
/competifier/messages: /competifier/messages:
get: get:
...@@ -98,6 +100,25 @@ paths: ...@@ -98,6 +100,25 @@ paths:
schema: schema:
format: int32 format: int32
type: integer type: integer
'/assessments/{assessmentId}/evaluation':
get:
tags:
- assessments
summary: Retrives an Assessment evaluation
responses:
'200':
description: Successfully retrieved assessment evaluation
content:
application/json:
schema:
type: object
parameters:
- name: assessmentId
in: path
required: true
schema:
format: int32
type: integer
'/assessments/{assessmentId}/submissions': '/assessments/{assessmentId}/submissions':
get: get:
tags: tags:
...@@ -223,9 +244,9 @@ paths: ...@@ -223,9 +244,9 @@ paths:
schema: schema:
type: array type: array
items: items:
oneOf: anyOf:
- $ref: '#/components/schemas/SubjectiveQuestion'
- $ref: '#/components/schemas/ObjectiveQuestion' - $ref: '#/components/schemas/ObjectiveQuestion'
- $ref: '#/components/schemas/SubjectiveQuestion'
parameters: parameters:
- name: assessmentId - name: assessmentId
in: path in: path
...@@ -244,7 +265,7 @@ paths: ...@@ -244,7 +265,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
oneOf: anyOf:
- $ref: '#/components/schemas/SubjectiveQuestion' - $ref: '#/components/schemas/SubjectiveQuestion'
- $ref: '#/components/schemas/ObjectiveQuestion' - $ref: '#/components/schemas/ObjectiveQuestion'
parameters: parameters:
...@@ -260,6 +281,58 @@ paths: ...@@ -260,6 +281,58 @@ paths:
schema: schema:
format: int32 format: int32
type: integer type: integer
'/assessments/{assessmentId}/questions/{questionId}/statement':
get:
tags:
- assessments
summary: Retrieves statement from a question
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/QuestionStatement'
parameters:
- name: assessmentId
in: path
required: true
schema:
format: int32
type: integer
- name: questionId
in: path
required: true
schema:
format: int32
type: integer
'/assessments/{assessmentId}/questions/{questionId}/alternatives':
get:
tags:
- assessments
summary: Retrieves alternatives from an objective question
responses:
'200':
description: ''
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Alternative'
parameters:
- name: assessmentId
in: path
required: true
schema:
format: int32
type: integer
- name: questionId
in: path
required: true
schema:
format: int32
type: integer
'/assessments/{assessmentId}/drafts': '/assessments/{assessmentId}/drafts':
get: get:
tags: tags:
...@@ -415,10 +488,25 @@ paths: ...@@ -415,10 +488,25 @@ paths:
required: true required: true
schema: schema:
type: integer type: integer
'/phases':
get:
tags:
- phases
summary: Retrives all phases
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
components: components:
schemas: schemas:
ScheduledEvent: ScheduledEvent:
type: object required:
- oid
- startsAt
- endsAt
properties: properties:
oid: oid:
description: The object identification description: The object identification
...@@ -432,7 +520,6 @@ components: ...@@ -432,7 +520,6 @@ components:
description: The time of the ending of the assessment description: The time of the ending of the assessment
type: string type: string
Assessment: Assessment:
type: object
required: required:
- status - status
- type - type
...@@ -440,7 +527,6 @@ components: ...@@ -440,7 +527,6 @@ components:
- resultAvailable - resultAvailable
- answerKeyAvailable - answerKeyAvailable
- locationType - locationType
- exam
- schedule - schedule
properties: properties:
status: status:
...@@ -554,8 +640,6 @@ components: ...@@ -554,8 +640,6 @@ components:
0: '#/components/schemas/SubjectiveQuestion' 0: '#/components/schemas/SubjectiveQuestion'
1: '#/components/schemas/ObjectiveQuestion' 1: '#/components/schemas/ObjectiveQuestion'
SubjectiveQuestion: SubjectiveQuestion:
required:
- answerKey
allOf: allOf:
- $ref: '#/components/schemas/Question' - $ref: '#/components/schemas/Question'
- type: object - type: object
...@@ -564,8 +648,6 @@ components: ...@@ -564,8 +648,6 @@ components:
format: string format: string
type: string type: string
ObjectiveQuestion: ObjectiveQuestion:
required:
- answerKey
allOf: allOf:
- $ref: '#/components/schemas/Question' - $ref: '#/components/schemas/Question'
- type: object - type: object
...@@ -575,48 +657,58 @@ components: ...@@ -575,48 +657,58 @@ components:
items: items:
$ref: '#/components/schemas/Alternative' $ref: '#/components/schemas/Alternative'
answerKey: answerKey:
format: int32
type: integer type: integer
ExamCover:
required:
- content
- oid
properties:
content:
type: string
oid:
type: integer
Exam: Exam:
required:
- type
- title
- groups
- questions
- oid
properties: properties:
type: type:
description: '{SUBJECTIVE, OBJECTIVE}' description: '{SUBJECTIVE, OBJECTIVE}'
type: integer type: integer
label: title:
description: A name to the exam
type: string type: string
cover: cover:
description: An html to be embedded as cover $ref: '#/components/schemas/ExamCover'
type: string
groups: groups:
description: The possible QuestionGroup of this Exam
type: array type: array
items: items:
$ref: '#/components/schemas/QuestionGroup' $ref: '#/components/schemas/QuestionGroup'
questions: questions:
description: All the ExamQuestions of this Exam
type: array type: array
items: items:
$ref: '#/components/schemas/Question' oneOf:
- $ref: '#/components/schemas/SubjectiveQuestion'
- $ref: '#/components/schemas/ObjectiveQuestion'
oid: oid:
description: Object identifier description: Object identifier
type: integer type: integer
Alternative: Alternative:
title: Alternative required:
description: Alternative for a *ObjectiveQuestion* - order
type: object - statement
- oid
properties: properties:
order: order:
format: int32
title: order title: order
description: position of this alternative to it's question description: position of this alternative to it's question
type: integer type: integer
statement: statement:
title: statement
description: the alternative statement description: the alternative statement
type: string type: string
oid: oid:
format: int32
description: Object identifier description: Object identifier
type: integer type: integer
AssessmentSubmission: AssessmentSubmission:
...@@ -642,7 +734,7 @@ components: ...@@ -642,7 +734,7 @@ components:
- $ref: '#/components/schemas/AssessmentSubmission' - $ref: '#/components/schemas/AssessmentSubmission'
- type: object - type: object
properties: properties:
oloadUri: loadUri:
type: string type: string
VirtualAssessmentSubmission: VirtualAssessmentSubmission:
allOf: allOf:
......
...@@ -9942,7 +9942,7 @@ ...@@ -9942,7 +9942,7 @@
"height": 13, "height": 13,
"autoResize": false, "autoResize": false,
"underline": false, "underline": false,
"text": "+statement", "text": "+content",
"horizontalAlignment": 0, "horizontalAlignment": 0,
"verticalAlignment": 5, "verticalAlignment": 5,
"wordWrap": false "wordWrap": false
...@@ -12071,7 +12071,7 @@ ...@@ -12071,7 +12071,7 @@
"_parent": { "_parent": {
"$ref": "AAAAAAFjK7inaCwwiDo=" "$ref": "AAAAAAFjK7inaCwwiDo="
}, },
"name": "statement", "name": "content",
"visibility": "public", "visibility": "public",
"isStatic": false, "isStatic": false,
"isLeaf": false, "isLeaf": false,
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