Commit cfa7de21 authored by bernardosunderhus's avatar bernardosunderhus

[API] adicionando links independentes aos esquemas das API's

parent a947492d
......@@ -1081,99 +1081,96 @@ paths:
components:
schemas:
ScheduledEvent:
$ref: './schemas/Assessment.yaml/#/ScheduledEvent'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Assessment.yaml/#/ScheduledEvent'
Assessment:
$ref: './schemas/Assessment.yaml/#/Assessment'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Assessment.yaml/#/Assessment'
VirtualAssessment:
$ref: './schemas/Assessment.yaml/#/VirtualAssessment'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Assessment.yaml/#/VirtualAssessment'
HandmadeAssessment:
$ref: './schemas/Assessment.yaml/#/HandmadeAssessment'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Assessment.yaml/#/HandmadeAssessment'
AssessmentEvent:
$ref: './schemas/Assessment.yaml/#/AssessmentEvent'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Assessment.yaml/#/AssessmentEvent'
QuestionGroup:
$ref: './schemas/Exam.yaml/#/QuestionGroup'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/QuestionGroup'
QuestionStatement:
$ref: './schemas/Exam.yaml/#/QuestionStatement'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/QuestionStatement'
Question:
$ref: './schemas/Exam.yaml/#/Question'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/Question'
SubjectiveQuestion:
$ref: './schemas/Exam.yaml/#/SubjectiveQuestion'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/SubjectiveQuestion'
ObjectiveQuestion:
$ref: './schemas/Exam.yaml/#/ObjectiveQuestion'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/ObjectiveQuestion'
ExamCover:
$ref: './schemas/Exam.yaml/#/ExamCover'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/ExamCover'
Exam:
$ref: './schemas/Exam.yaml/#/Exam'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/Exam'
Alternative:
$ref: './schemas/Exam.yaml/#/Alternative'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/Alternative'
ExamQuestionComplaint:
$ref: './schemas/Exam.yaml/#/ExamQuestionComplaint'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/ExamQuestionComplaint'
AssessmentSubmission:
$ref: './schemas/Submission.yaml/#/AssessmentSubmission'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/AssessmentSubmission'
HandmadeAssessmentSubmission:
$ref: './schemas/Submission.yaml/#/HandmadeAssessmentSubmission'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/HandmadeAssessmentSubmission'
VirtualAssessmentSubmission:
$ref: './schemas/Submission.yaml/#/VirtualAssessmentSubmission'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/VirtualAssessmentSubmission'
Answer:
$ref: './schemas/Submission.yaml/#/Answer'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/Answer'
AssessmentSubmissionEvaluation:
$ref: './schemas/Submission.yaml/#/AssessmentSubmissionEvaluation'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/AssessmentSubmissionEvaluation'
AnswerGrade:
$ref: './schemas/Submission.yaml/#/AnswerGrade'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/AnswerGrade'
VirtualAssessmentSubmissionDraft:
$ref: './schemas/Submission.yaml/#/VirtualAssessmentSubmissionDraft'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/VirtualAssessmentSubmissionDraft'
Competifier:
$ref: './schemas/Competifier.yaml/#/Competifier'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/Competifier'
SoloCompetifier:
$ref: './schemas/Competifier.yaml/#/SoloCompetifier'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/SoloCompetifier'
TeamCompetifier:
$ref: './schemas/Competifier.yaml/#/TeamCompetifier'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/TeamCompetifier'
CompetifierEvent:
$ref: './schemas/Competifier.yaml/#/CompetifierEvent'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/CompetifierEvent'
Tag:
$ref: './schemas/Competifier.yaml/#/Tag'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/Tag'
Participant:
$ref: './schemas/Competifier.yaml/#/Participant'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/Participant'
Message:
$ref: './schemas/Competifier.yaml/#/Message'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/Message'
JsonPatch:
$ref: './schemas/JsonPatch.yaml'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/JsonPatch.yaml'
Competition:
$ref: './schemas/Phase.yaml/#/Competition'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/Competition'
Phase:
$ref: './schemas/Phase.yaml/#/Phase'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/Phase'
PhaseEvent:
$ref: './schemas/Phase.yaml/#/PhaseEvent'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/PhaseEvent'
PhaseParticipation:
$ref: './schemas/Phase.yaml/#/PhaseParticipation'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/PhaseParticipation'
BestRanked:
$ref: './schemas/Phase.yaml/#/BestRanked'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/BestRanked'
MinimumPerformance:
$ref: './schemas/Phase.yaml/#/MinimumPerformance'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/MinimumPerformance'
ClassificationRule:
$ref: './schemas/Phase.yaml/#/ClassificationRule'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/ClassificationRule'
EvaluationRule:
$ref: './schemas/Phase.yaml/#/EvaluationRule'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/EvaluationRule'
TieBreakCriteria:
$ref: './schemas/Phase.yaml/#/TieBreakCriteria'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/TieBreakCriteria'
Rank:
$ref: './schemas/Phase.yaml/#/Rank'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/Rank'
SubscriptionRule:
$ref: './schemas/Subscription.yaml/#/SubscriptionRule'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/SubscriptionRule'
Subscription:
$ref: './schemas/Subscription.yaml/#/Subscription'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/Subscription'
SoloSubscription:
$ref: './schemas/Subscription.yaml/#/SoloSubscription'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/SoloSubscription'
TeamSubscription:
$ref: './schemas/Subscription.yaml/#/TeamSubscription'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/TeamSubscription'
FormTemplate:
$ref: './schemas/Subscription.yaml/#/FormTemplate'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/FormTemplate'
FormField:
$ref: './schemas/Subscription.yaml/#/FormField'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/FormField'
FormAnswer:
$ref: './schemas/Subscription.yaml/#/FormAnswer'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/FormAnswer'
FormSection:
$ref: './schemas/Subscription.yaml/#/FormSection'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/FormSection'
{
"openapi": "3.0.0",
"info": {
"title": "Competifier API",
"description": "Competifier API",
"version": "0.1.0"
},
"tags": [
{
"name": "competifier",
"description": "Operations involving the competifier"
},
{
"name": "assessments",
"description": "Operations involving the assessments"
},
{
"name": "phases",
"description": "Operations involving the phases"
}
],
"paths": {
"/competifier/messages": {
"get": {
"tags": [
"competifier"
],
"summary": "Retrieves all messages from the competifier",
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Message"
}
}
}
}
}
}
}
},
"/competifier/messages/{messageId}": {
"get": {
"tags": [
"competifier"
],
"summary": "Retrieves one message from a competifier",
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Message"
}
}
}
}
}
},
"patch": {
"tags": [
"competifier"
],
"summary": "Updates the message read state",
"description": "The only attribute allowed to be altered is read",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/JsonPatch"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Message"
}
}
}
}
}
},
"parameters": [
{
"name": "messageId",
"in": "path",
"required": true,
"schema": {
"format": "int32",
"type": "integer"
}
}
]
},
"/preferences": {},
"/assessments": {
"get": {
"tags": [
"assessments"
],
"summary": "Retrieves all assessments",
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/VirtualAssessment"
},
{
"$ref": "#/components/schemas/HandmadeAssessment"
}
]
}
}
}
}
}
}
}
},
"/assessments/{assessmentId}": {
"get": {
"tags": [
"assessments"
],
"summary": "Retrives an Assessment",
"responses": {
"200": {
"description": "Successfully retrieved assessment",
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/VirtualAssessment"
},
{
"$ref": "#/components/schemas/HandmadeAssessment"
}
]
}
}
}
}
}
},
"parameters": [
{
"name": "assessmentId",
"in": "path",
"required": true,
"schema": {
"format": "int32",
"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": {
"get": {
"tags": [
"assessments"
],
"summary": "Retrives all submissions from an assessment",
"responses": {
"200": {
"description": "Successfully retrieved all submissions from an assessment",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AssessmentSubmission"
}
},
"examples": {
"Dummy Submissions": {
"value": "[\n {\n \"answers\": [\n {\n \"choice\": 0,\n \"freeText\": \"\",\n \"question\": 0\n }\n ],\n \"assessment\": 0,\n \"finishedAt\": \"date-time\",\n \"lastUpdate\": \"date-time\",\n \"startedAt\": \"date-time\",\n \"status\": 0,\n \"type\": 0,\n \"uploadUri\": \"\"\n }\n]"
}
}
}
}
}
}
},
"post": {
"tags": [
"assessments"
],
"summary": "Creates or updates a submission from an assessment",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/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": {
"description": "Successfully created the submission",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AssessmentSubmission"
}
}
}
}
}
},
"parameters": [
{
"name": "assessmentId",
"in": "path",
"required": true,
"schema": {
"format": "int32",
"type": "integer"
}
}
]
},
"/assessments/{assessmentId}/submissions/{submissionId}": {
"get": {
"tags": [
"assessments"
],
"summary": "Retrieves a single submission from an assessment",
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AssessmentSubmission"
},
"examples": {
"Dummy Submission": {
"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
}
}
}
}
}
}
}
},
"parameters": [
{
"name": "assessmentId",
"in": "path",
"required": true,
"schema": {
"format": "int32",
"type": "integer"
}
},
{
"name": "submissionId",
"in": "path",
"required": true,
"schema": {
"format": "int32",
"type": "integer"
}
}
]
},
"/assessments/{assessmentId}/questions": {
"get": {
"tags": [
"assessments"
],
"summary": "Retrives all questions from an assessment",
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"anyOf": [
{
"$ref": "#/components/schemas/ObjectiveQuestion"
},
{
"$ref": "#/components/schemas/SubjectiveQuestion"
}
]
}
}
}
}
}
}
},
"parameters": [
{
"name": "assessmentId",
"in": "path",
"required": true,
"schema": {
"format": "int32",
"type": "integer"
}
}
]
},
"/assessments/{assessmentId}/questions/{questionId}": {
"get": {
"tags": [
"assessments"
],
"summary": "Retrieves single question from a given assessment",
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/SubjectiveQuestion"
},
{
"$ref": "#/components/schemas/ObjectiveQuestion"
}
]
}
}
}
}
}
},
"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}/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": {
"get": {
"tags": [
"assessments"
],
"summary": "Retrieves all drafts",
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/HandmadeAssessmentSubmission"
},
{
"$ref": "#/components/schemas/VirtualAssessmentSubmission"
}
]
}
}
}
}
}
}
},
"post": {
"tags": [
"assessments"
],
"summary": "Creates or overrides an existing draft",
"requestBody": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/HandmadeAssessmentSubmission"
},
{
"$ref": "#/components/schemas/VirtualAssessmentSubmission"
}
]
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/HandmadeAssessmentSubmission"
},
{
"$ref": "#/components/schemas/VirtualAssessmentSubmission"
}
]
}
}
}
}
}
},
"parameters": [
{
"name": "assessmentId",
"in": "path",
"required": true,
"schema": {
"format": "int32",
"type": "integer"
}
}
]
},
"/assessments/{assessmentId}/drafts/{draftId}": {
"parameters": [
{
"name": "assessmentId",
"in": "path",
"required": true,
"schema": {
"format": "int32",
"type": "integer"
}
},
{
"name": "draftId",
"in": "path",
"required": true,
"schema": {
"format": "int32",
"type": "integer"
}
}
],
"get": {
"tags": [
"assessments"
],
"summary": "Retrieves a draft",
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/HandmadeAssessmentSubmission"
},
{
"$ref": "#/components/schemas/VirtualAssessmentSubmission"
}
]
}
}
}
}
}
}
},
"/competifier": {
"get": {
"tags": [
"competifier"
],
"summary": "Retrives competifier",
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/SoloCompetifier"
},
{
"$ref": "#/components/schemas/TeamCompetifier"
}
]
}
}
}
}
}
},
"patch": {
"tags": [
"competifier"
],
"summary": "Updates competifier",
"description": "All except password",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/JsonPatch"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/SoloCompetifier"
},
{
"$ref": "#/components/schemas/TeamCompetifier"
}
]
}
}
}
}
}
}
},
"/competifier/participants": {
"get": {
"tags": [
"competifier"
],
"summary": "Retrives all participants from a competifier",
"description": "only valid if the competifier is of type TEAM",
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Participant"
}
}
}
}
}
}
}
},
"/competifier/participants/{participantId}": {
"get": {
"tags": [
"competifier"
],
"summary": "Retrieves a single participant from a competifier",
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Participant"
}
}
}
}
}
},
"patch": {
"tags": [
"competifier"
],
"summary": "Updates participant",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/JsonPatch"
}
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Participant"
}
}
}
}
}
},
"parameters": [
{
"name": "participantId",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
}
]
},
"/phases": {
"get": {
"tags": [
"phases"
],
"summary": "Retrives all phases",
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"ScheduledEvent": {
"$ref": "./schemas/Assessment.yaml/#/ScheduledEvent"
},
"Assessment": {
"$ref": "./schemas/Assessment.yaml/#/Assessment"
},
"VirtualAssessment": {
"$ref": "./schemas/Assessment.yaml/#/VirtualAssessment"
},
"HandmadeAssessment": {
"$ref": "./schemas/Assessment.yaml/#/HandmadeAssessment"
},
"AssessmentEvent": {
"$ref": "./schemas/Assessment.yaml/#/AssessmentEvent"
},
"QuestionGroup": {
"$ref": "./schemas/Exam.yaml/#/QuestionGroup"
},
"QuestionStatement": {
"$ref": "./schemas/Exam.yaml/#/QuestionStatement"
},
"Question": {
"$ref": "./schemas/Exam.yaml/#/Question"
},
"SubjectiveQuestion": {
"$ref": "./schemas/Exam.yaml/#/SubjectiveQuestion"
},
"ObjectiveQuestion": {
"$ref": "./schemas/Exam.yaml/#/ObjectiveQuestion"
},
"ExamCover": {
"$ref": "./schemas/Exam.yaml/#/ExamCover"
},
"Exam": {
"$ref": "./schemas/Exam.yaml/#/Exam"
},
"Alternative": {
"$ref": "./schemas/Exam.yaml/#/Alternative"
},
"ExamQuestionComplaint": {
"$ref": "./schemas/Exam.yaml/#/ExamQuestionComplaint"
},
"AssessmentSubmission": {
"$ref": "./schemas/Submission.yaml/#/AssessmentSubmission"
},
"HandmadeAssessmentSubmission": {
"$ref": "./schemas/Submission.yaml/#/HandmadeAssessmentSubmission"
},
"VirtualAssessmentSubmission": {
"$ref": "./schemas/Submission.yaml/#/VirtualAssessmentSubmission"
},
"Answer": {
"$ref": "./schemas/Submission.yaml/#/Answer"
},
"AssessmentSubmissionEvaluation": {
"$ref": "./schemas/Submission.yaml/#/AssessmentSubmissionEvaluation"
},
"AnswerGrade": {
"$ref": "./schemas/Submission.yaml/#/AnswerGrade"
},
"VirtualAssessmentSubmissionDraft": {
"$ref": "./schemas/Submission.yaml/#/VirtualAssessmentSubmissionDraft"
},
"Competifier": {
"$ref": "./schemas/Competifier.yaml/#/Competifier"
},
"SoloCompetifier": {
"$ref": "./schemas/Competifier.yaml/#/SoloCompetifier"
},
"TeamCompetifier": {
"$ref": "./schemas/Competifier.yaml/#/TeamCompetifier"
},
"CompetifierEvent": {
"$ref": "./schemas/Competifier.yaml/#/CompetifierEvent"
},
"Tag": {
"$ref": "./schemas/Competifier.yaml/#/Tag"
},
"Participant": {
"$ref": "./schemas/Competifier.yaml/#/Participant"
},
"Message": {
"$ref": "./schemas/Competifier.yaml/#/Message"
},
"JsonPatch": {
"$ref": "./schemas/JsonPatch.yaml"
},
"Competition": {
"$ref": "./schemas/Phase.yaml/#/Competition"
},
"Phase": {
"$ref": "./schemas/Phase.yaml/#/Phase"
},
"PhaseEvent": {
"$ref": "./schemas/Phase.yaml/#/PhaseEvent"
},
"PhaseParticipation": {
"$ref": "./schemas/Phase.yaml/#/PhaseParticipation"
},
"BestRanked": {
"$ref": "./schemas/Phase.yaml/#/BestRanked"
},
"MinimumPerformance": {
"$ref": "./schemas/Phase.yaml/#/MinimumPerformance"
},
"ClassificationRule": {
"$ref": "./schemas/Phase.yaml/#/ClassificationRule"
},
"EvaluationRule": {
"$ref": "./schemas/Phase.yaml/#/EvaluationRule"
},
"TieBreakCriteria": {
"$ref": "./schemas/Phase.yaml/#/TieBreakCriteria"
},
"Ranking": {
"$ref": "./schemas/Phase.yaml/#/Ranking"
},
"Rank": {
"$ref": "./schemas/Phase.yaml/#/Rank"
},
"SubscriptionRule": {
"$ref": "./schemas/Subscription.yaml/#/SubscriptionRule"
},
"Subscription": {
"$ref": "./schemas/Subscription.yaml/#/Subscription"
},
"SoloSubscription": {
"$ref": "./schemas/Subscription.yaml/#/SoloSubscription"
},
"TeamSubscription": {
"$ref": "./schemas/Subscription.yaml/#/TeamSubscription"
},
"FormTemplate": {
"$ref": "./schemas/Subscription.yaml/#/FormTemplate"
},
"FormField": {
"$ref": "./schemas/Subscription.yaml/#/FormField"
},
"FormAnswer": {
"$ref": "./schemas/Subscription.yaml/#/FormAnswer"
},
"FormSection": {
"$ref": "./schemas/Subscription.yaml/#/FormSection"
}
}
}
}
\ No newline at end of file
openapi: 3.0.0
info:
title: Competifier API
description: Competifier API
version: 0.1.0
version: 1.0.0
description:
missing description
contact:
name: Documentation
url: 'https://gitlab.dev.evologica.com.br/Competify/Docs'
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: https://localhost:3000/v1
tags:
- name: competifier
description: Operations involving the competifier
......@@ -214,7 +223,7 @@ paths:
'/assessments/{assessmentId}/questions':
get:
tags:
- assessments
- assessments
summary: Retrives all questions from an assessment
responses:
'200':
......@@ -225,8 +234,8 @@ paths:
type: array
items:
anyOf:
- $ref: '#/components/schemas/ObjectiveQuestion'
- $ref: '#/components/schemas/SubjectiveQuestion'
- $ref: '#/components/schemas/ObjectiveQuestion'
- $ref: '#/components/schemas/SubjectiveQuestion'
parameters:
- name: assessmentId
in: path
......@@ -246,8 +255,8 @@ paths:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/SubjectiveQuestion'
- $ref: '#/components/schemas/ObjectiveQuestion'
- $ref: '#/components/schemas/SubjectiveQuestion'
- $ref: '#/components/schemas/ObjectiveQuestion'
parameters:
- name: assessmentId
in: path
......@@ -299,7 +308,7 @@ paths:
schema:
type: array
items:
$ref: '#/components/schemas/Alternative'
$ref: '#/components/schemas/Alternative'
parameters:
- name: assessmentId
in: path
......@@ -486,7 +495,7 @@ paths:
required: true
schema:
type: integer
'/phases':
/phases:
get:
tags:
- phases
......@@ -545,7 +554,9 @@ paths:
summary: Retrieves the Competifier's Rank
responses:
'200':
description: 'Must return the Classification Rule, the Evaluation Rule and evaluations.'
description: >-
Must return the Classification Rule, the Evaluation Rule and
evaluations.
content:
application/json:
schema:
......@@ -559,98 +570,96 @@ paths:
components:
schemas:
ScheduledEvent:
$ref: './schemas/Assessment.yaml#/ScheduledEvent'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Assessment.yaml/#/ScheduledEvent'
Assessment:
$ref: './schemas/Assessment.yaml#/Assessment'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Assessment.yaml/#/Assessment'
VirtualAssessment:
$ref: './schemas/Assessment.yaml#/VirtualAssessment'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Assessment.yaml/#/VirtualAssessment'
HandmadeAssessment:
$ref: './schemas/Assessment.yaml#/HandmadeAssessment'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Assessment.yaml/#/HandmadeAssessment'
AssessmentEvent:
$ref: './schemas/Assessment.yaml#/AssessmentEvent'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Assessment.yaml/#/AssessmentEvent'
QuestionGroup:
$ref: './schemas/Exam.yaml#/QuestionGroup'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/QuestionGroup'
QuestionStatement:
$ref: './schemas/Exam.yaml#/QuestionStatement'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/QuestionStatement'
Question:
$ref: './schemas/Exam.yaml#/Question'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/Question'
SubjectiveQuestion:
$ref: './schemas/Exam.yaml#/SubjectiveQuestion'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/SubjectiveQuestion'
ObjectiveQuestion:
$ref: './schemas/Exam.yaml#/ObjectiveQuestion'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/ObjectiveQuestion'
ExamCover:
$ref: './schemas/Exam.yaml#/ExamCover'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/ExamCover'
Exam:
$ref: './schemas/Exam.yaml#/Exam'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/Exam'
Alternative:
$ref: './schemas/Exam.yaml#/Alternative'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/Alternative'
ExamQuestionComplaint:
$ref: './schemas/Exam.yaml#/ExamQuestionComplaint'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/ExamQuestionComplaint'
AssessmentSubmission:
$ref: './schemas/Submission.yaml#/AssessmentSubmission'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/AssessmentSubmission'
HandmadeAssessmentSubmission:
$ref: './schemas/Submission.yaml#/HandmadeAssessmentSubmission'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/HandmadeAssessmentSubmission'
VirtualAssessmentSubmission:
$ref: './schemas/Submission.yaml#/VirtualAssessmentSubmission'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/VirtualAssessmentSubmission'
Answer:
$ref: './schemas/Submission.yaml#/Answer'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/Answer'
AssessmentSubmissionEvaluation:
$ref: './schemas/Submission.yaml#/AssessmentSubmissionEvaluation'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/AssessmentSubmissionEvaluation'
AnswerGrade:
$ref: './schemas/Submission.yaml#/AnswerGrade'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/AnswerGrade'
VirtualAssessmentSubmissionDraft:
$ref: './schemas/Submission.yaml#/VirtualAssessmentSubmissionDraft'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/VirtualAssessmentSubmissionDraft'
Competifier:
$ref: './schemas/Competifier.yaml#/Competifier'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/Competifier'
SoloCompetifier:
$ref: './schemas/Competifier.yaml#/SoloCompetifier'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/SoloCompetifier'
TeamCompetifier:
$ref: './schemas/Competifier.yaml#/TeamCompetifier'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/TeamCompetifier'
CompetifierEvent:
$ref: './schemas/Competifier.yaml#/CompetifierEvent'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/CompetifierEvent'
Tag:
$ref: './schemas/Competifier.yaml#/Tag'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/Tag'
Participant:
$ref: './schemas/Competifier.yaml#/Participant'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/Participant'
Message:
$ref: './schemas/Competifier.yaml#/Message'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/Message'
JsonPatch:
$ref: './schemas/JsonPatch.yaml'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/JsonPatch.yaml'
Competition:
$ref: './schemas/Phase.yaml#/Competition'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/Competition'
Phase:
$ref: './schemas/Phase.yaml#/Phase'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/Phase'
PhaseEvent:
$ref: './schemas/Phase.yaml#/PhaseEvent'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/PhaseEvent'
PhaseParticipation:
$ref: './schemas/Phase.yaml#/PhaseParticipation'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/PhaseParticipation'
BestRanked:
$ref: './schemas/Phase.yaml#/BestRanked'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/BestRanked'
MinimumPerformance:
$ref: './schemas/Phase.yaml#/MinimumPerformance'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/MinimumPerformance'
ClassificationRule:
$ref: './schemas/Phase.yaml#/ClassificationRule'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/ClassificationRule'
EvaluationRule:
$ref: './schemas/Phase.yaml#/EvaluationRule'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/EvaluationRule'
TieBreakCriteria:
$ref: './schemas/Phase.yaml#/TieBreakCriteria'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/TieBreakCriteria'
Rank:
$ref: './schemas/Phase.yaml#/Rank'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/Rank'
SubscriptionRule:
$ref: './schemas/Subscription.yaml#/SubscriptionRule'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/SubscriptionRule'
Subscription:
$ref: './schemas/Subscription.yaml#/Subscription'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/Subscription'
SoloSubscription:
$ref: './schemas/Subscription.yaml#/SoloSubscription'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/SoloSubscription'
TeamSubscription:
$ref: './schemas/Subscription.yaml#/TeamSubscription'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/TeamSubscription'
FormTemplate:
$ref: './schemas/Subscription.yaml#/FormTemplate'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/FormTemplate'
FormField:
$ref: './schemas/Subscription.yaml#/FormField'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/FormField'
FormAnswer:
$ref: './schemas/Subscription.yaml#/FormAnswer'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/FormAnswer'
FormSection:
$ref: './schemas/Subscription.yaml#/FormSection'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/FormSection'
......@@ -37,7 +37,7 @@ Assessment:
description: Why the fuck is this a string?
type: string
exam:
$ref: './Exam.yaml#/Exam'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/Exam'
oid:
description: Object identifier
type: integer
......
......@@ -9,6 +9,13 @@ properties:
The PATCH operation to be performed. Available operations: "add",
"remove", "move", "copy", "replace", "test"
type: string
enum:
- add
- remove
- move
- copy
- replace
- test
path:
description: The target location in the JSON
type: string
......
......@@ -130,4 +130,4 @@ Rank:
evaluations:
type: array
items:
$ref: './Submission.yaml#/AssessmentSubmissionEvaluation'
$ref: 'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/AssessmentSubmissionEvaluation'
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