- Request body
{
"email": "email4@gmail.com",
"password": "123456",
"confirmPassword": "123456"
}
- Response: status code 201
- Request body
{
"email": "email4@gmail.com",
"password": "123456"
}
- Response: status code 200 and a token object
{
"token": "GENERATED_JWT_TOKEN_HERE"
}
All the routes below expect to receive an authorization header containing a valid token received upon login:
{
"Authorization": "Bearer SOME_VALID_GENERATED_TOKEN"
}
- Request body
{
"name": "Prova",
"pdfUrl": "https://google.com.br",
"categoryId": 2,
"teacherDisciplineId": 1
}
- Response: status code 201
- Response:
{
"periodNumber": {
"disciplineName": {
"category": [
{
"name": "Prova",
"teacherName": "Diego Pinho",
"pdfUrl": "https://google.com.br",
"id": 1
}
]
}
}
}
This object is formatted so that the tests are grouped by categories, the categories are grouped by discipline, and the disciplines are grouped by period.
- Response:
{
"teacherName": {
"category": [
{
"name": "Prova 01",
"disciplineName": "HTML e CSS",
"pdfUrl": "https://google.com.br",
"id": 1
}
]
}
}
This object is formatted so that tests are grouped by categories, and categories are grouped by teachers.