Commit 99673c45 authored by Isaac Pereira's avatar Isaac Pereira

Adiciona rotas e autenticação

parent ff49cd5f
......@@ -6,6 +6,8 @@ info:
application to control the competition itself
version: 1.0.0
tags:
- name: auth
description: 'Authentication and register'
- name: admin
description: 'Competition admin operations'
- name: public
......@@ -17,6 +19,68 @@ tags:
- name: exams
description: 'Exam operations'
paths:
/login:
post:
tags:
- auth
summary: Retrieves information about this competition
description: Retrieves information about this competition.
requestBody:
content:
application/json:
schema:
type: object
properties:
username:
type: string
password:
type: string
required: true
responses:
'200':
description: 'JWT'
content:
application/json:
schema:
type: string
/register:
post:
tags:
- auth
summary: Retrieves information about this competition
description: Retrieves information about this competition.
requestBody:
content:
application/json:
schema:
type: object
properties:
username:
type: string
fullname:
type: string
email:
type: string
password:
type: string
required: true
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties:
oid:
type: integer
username:
type: string
fullname:
type: string
email:
type: string
/competition:
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