Commit 1a3521b2 authored by bernardosunderhus's avatar bernardosunderhus

[API] Adiciona rota de login

parent 50b53ba3
openapi: 3.0.0 openapi: 3.0.0
info: info:
title: Competifier title: Competition API
version: 1.0.0 version: 1.0.0
description: >- description: >-
Api of the competifier. This API should be used by the client (AKA `competifier`) to perform assessments Api of the competition. This API should be used by the client (AKA
`competifier`) to perform assessments
contact: contact:
name: Documentation name: Documentation
url: 'https://gitlab.dev.evologica.com.br/Competify/Docs' url: 'https://gitlab.dev.evologica.com.br/Competify/Docs'
...@@ -17,7 +18,33 @@ tags: ...@@ -17,7 +18,33 @@ tags:
description: Operations involving the assessments description: Operations involving the assessments
- name: phases - name: phases
description: Operations involving the phases description: Operations involving the phases
- name: authentication
description: Operations involving the user authentication
paths: paths:
/login:
post:
tags:
- authentication
summary: Sends a payload to try to login into the application
requestBody:
content:
application/json:
schema:
type: object
properties:
username:
type: string
password:
type: string
format: password
required: true
responses:
'200':
description: Returns a JWT token
content:
application/json:
schema:
type: string
/competifier/messages: /competifier/messages:
get: get:
tags: tags:
...@@ -551,145 +578,150 @@ paths: ...@@ -551,145 +578,150 @@ paths:
schema: schema:
type: integer type: integer
components: components:
securitySchemes:
COMPETITION_TOKEN:
type: http
scheme: bearer
bearerFormat: JWT
schemas: schemas:
ScheduledEvent: ScheduledEvent:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Assessment.yaml/#/ScheduledEvent' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Assessment.yaml/#/ScheduledEvent
Assessment: Assessment:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Assessment.yaml/#/Assessment' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Assessment.yaml/#/Assessment
VirtualAssessment: VirtualAssessment:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Assessment.yaml/#/VirtualAssessment' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Assessment.yaml/#/VirtualAssessment
HandmadeAssessment: HandmadeAssessment:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Assessment.yaml/#/HandmadeAssessment' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Assessment.yaml/#/HandmadeAssessment
AssessmentEvent: AssessmentEvent:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Assessment.yaml/#/AssessmentEvent' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Assessment.yaml/#/AssessmentEvent
QuestionGroup: QuestionGroup:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/QuestionGroup' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/QuestionGroup
QuestionStatement: QuestionStatement:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/QuestionStatement' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/QuestionStatement
Question: Question:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/Question' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/Question
SubjectiveQuestion: SubjectiveQuestion:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/SubjectiveQuestion' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/SubjectiveQuestion
ObjectiveQuestion: ObjectiveQuestion:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/ObjectiveQuestion' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/ObjectiveQuestion
ExamCover: ExamCover:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/ExamCover' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/ExamCover
Exam: Exam:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/Exam' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/Exam
Alternative: Alternative:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/Alternative' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/Alternative
ExamQuestionComplaint: ExamQuestionComplaint:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/ExamQuestionComplaint' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Exam.yaml/#/ExamQuestionComplaint
AssessmentSubmission: AssessmentSubmission:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/AssessmentSubmission' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/AssessmentSubmission
HandmadeAssessmentSubmission: HandmadeAssessmentSubmission:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/HandmadeAssessmentSubmission' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/HandmadeAssessmentSubmission
VirtualAssessmentSubmission: VirtualAssessmentSubmission:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/VirtualAssessmentSubmission' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/VirtualAssessmentSubmission
Answer: Answer:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/Answer' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/Answer
AssessmentSubmissionEvaluation: AssessmentSubmissionEvaluation:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/AssessmentSubmissionEvaluation' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/AssessmentSubmissionEvaluation
AnswerGrade: AnswerGrade:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/AnswerGrade' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/AnswerGrade
VirtualAssessmentSubmissionDraft: VirtualAssessmentSubmissionDraft:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/VirtualAssessmentSubmissionDraft' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Submission.yaml/#/VirtualAssessmentSubmissionDraft
Competifier: Competifier:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/Competifier' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/Competifier
SoloCompetifier: SoloCompetifier:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/SoloCompetifier' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/SoloCompetifier
TeamCompetifier: TeamCompetifier:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/TeamCompetifier' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/TeamCompetifier
CompetifierEvent: CompetifierEvent:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/CompetifierEvent' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/CompetifierEvent
Tag: Tag:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/Tag' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/Tag
Participant: Participant:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/Participant' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/Participant
Message: Message:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/Message' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Competifier.yaml/#/Message
JsonPatch: JsonPatch:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/JsonPatch.yaml' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/JsonPatch.yaml
Competition: Competition:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/Competition' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/Competition
Phase: Phase:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/Phase' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/Phase
PhaseEvent: PhaseEvent:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/PhaseEvent' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/PhaseEvent
PhaseParticipation: PhaseParticipation:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/PhaseParticipation' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/PhaseParticipation
BestRanked: BestRanked:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/BestRanked' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/BestRanked
MinimumPerformance: MinimumPerformance:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/MinimumPerformance' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/MinimumPerformance
ClassificationRule: ClassificationRule:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/ClassificationRule' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/ClassificationRule
EvaluationRule: EvaluationRule:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/EvaluationRule' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/EvaluationRule
TieBreakCriteria: TieBreakCriteria:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/TieBreakCriteria' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/TieBreakCriteria
Rank: Rank:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/Rank' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Phase.yaml/#/Rank
SubscriptionRule: SubscriptionRule:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/SubscriptionRule' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/SubscriptionRule
Subscription: Subscription:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/Subscription' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/Subscription
SoloSubscription: SoloSubscription:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/SoloSubscription' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/SoloSubscription
TeamSubscription: TeamSubscription:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/TeamSubscription' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/TeamSubscription
FormTemplate: FormTemplate:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/FormTemplate' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/FormTemplate
FormField: FormField:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/FormField' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/FormField
FormAnswer: FormAnswer:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/FormAnswer' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/FormAnswer
FormSection: FormSection:
$ref: $ref: >-
'https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/FormSection' https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/schemas/Subscription.yaml/#/FormSection
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