body is not required for this request
token authorization is not required for this request
Output
[
{
"id": "ae32d78c-8153-41ef-ae01-6fa7f8985405",
"name": "Cláudio",
"email": "proftop@email.com",
"subject": "Matemática",
"bio": "Eu gosto muito de ensinar",
"createdAt": "2022-09-14T21:18:13.581Z",
"updatedAt": "2022-09-14T21:18:13.581Z",
"isActive": true
}
]
body is not required for this request
token authorization is required for this request Auth Example:
'Bearer {token}'
- Everybody with token can do a request
Output
{
"id": "ae32d78c-8153-41ef-ae01-6fa7f8985405",
"name": "Cláudio",
"email": "proftop@email.com",
"subject": "Matemática",
"bio": "Eu gosto muito de ensinar",
"createdAt": "2022-09-14T21:18:13.581Z",
"updatedAt": "2022-09-14T21:18:13.581Z",
"isActive": true
}
body is required for this request Body Example:
{
"name": "Cláudio",
"email": "proftop@email.com",
"password": "1234",
"subject": "Matemática",
"bio": "Eu gosto muito de ensinar"
}
token authorization is not required for this request
- Teacher with the same email is not allowed.
Output
{
"id": "ae32d78c-8153-41ef-ae01-6fa7f8985405",
"name": "Cláudio",
"email": "proftop@email.com",
"subject": "Matemática",
"bio": "Eu gosto muito de ensinar",
"createdAt": "2022-09-14T21:18:13.581Z",
"updatedAt": "2022-09-14T21:18:13.581Z",
"isActive": true
}
body is required for this request Body Example:
{
"email": "proftop@email.com",
"password": "1234"
}
token authorization is not required for this request
- Generated token expires in one day
Output
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InByb2Z0b3BAZW1haWwuY29tIiwiaWF0IjoxNjYzMTkxOTcxLCJleHAiOjE2NjMyNzgzNzEsInN1YiI6ImFlMzJkNzhjLTgxNTMtNDFlZi1hZTAxLTZmYTdmODk4NTQwNSJ9.bWgk6nznX72eEv-N6b3h5JPVkrPoMwiLahwo0HJd3dY"
}
body is required for this request Body Example:
{
"email": "aluno2@email.com"
}
token authorization is required for this request Auth Example:
'Bearer {token}'
- Is not be able to add same student in a same class
- Is not be able to add inexistent student in a class
Output
[
{
"id": "048442cd-73a6-4633-992f-b599a0fe4c61",
"name": "Celio",
"email": "aluno2@email.com",
"createdAt": "2022-09-14T21:51:53.695Z",
"updatedAt": "2022-09-14T21:51:53.695Z",
"age": 12,
"isActive": true
}
]
body is required for this request Body Example:
{
"name": "CláudioEDITADOO",
"subject": "Matemática",
}
token authorization is required for this request Auth Example:
'Bearer {token}'
- Is not be able to update a different Teacher
Output
{
"id": "ae32d78c-8153-41ef-ae01-6fa7f8985405",
"name": "CláudioEDITADOO",
"email": "proftop@email.com",
"subject": "Matemática",
"bio": "Eu gosto muito de ensinar",
"createdAt": "2022-09-14T21:18:13.581Z",
"updatedAt": "2022-09-14T21:56:21.515Z",
"isActive": true
}
body is not required for this request
token authorization is required for this request Auth Example:
'Bearer {token}'
- Is not be able to other teachers delete others
Output
no body response for this request
body is not required for this request
token authorization is not required for this request
Output
[
{
"id": "faeafbb9-0700-4938-aa0b-994e2526c49a",
"name": "Ronaldy",
"email": "ronaldy@email.com",
"cellNumber": "991997765"
}
]
body is not required for this request
token authorization is required for this request Auth Example:
'Bearer {token}'
- Is not be able to list a different Guardian
Output
{
"guardian": {
"id": "faeafbb9-0700-4938-aa0b-994e2526c49a",
"name": "Ronaldy",
"email": "ronaldy@email.com",
"cellNumber": "991997765"
},
"students": []
}
body is required for this request Body Example:
{
"name": "Ronaldy",
"email": "ronaldy@email.com",
"password": "1234",
"cellNumber": "991997765"
}
token authorization is not required for this request
- Guardian with the same email is not allowed.
Output
{
"id": "faeafbb9-0700-4938-aa0b-994e2526c49a",
"name": "Ronaldy",
"email": "ronaldy@email.com",
"cellNumber": "991997765"
}
body is required for this request Body Example:
{
"name": "Celio",
"email": "aluno2@email.com",
"password": "1234",
"age": 12
}
token authorization is required for this request Auth Example:
'Bearer {token}'
- Created student is assigned to the guardian who created it
- Is not be able to create a student with the same email that other students
Output
{
"id": "048442cd-73a6-4633-992f-b599a0fe4c61",
"name": "Celio",
"email": "aluno2@email.com",
"age": 12,
"guardian": {
"id": "faeafbb9-0700-4938-aa0b-994e2526c49a",
"name": "Ronaldy",
"email": "ronaldy@email.com",
"cellNumber": "991997765"
},
"createdAt": "2022-09-14T21:51:53.695Z",
"updatedAt": "2022-09-14T21:51:53.695Z",
"isActive": true
}
body is required for this request Body Example:
{
"email": "ronaldy@email.com",
"password": "1234"
}
token authorization is not required for this request
- Generated token expires in one day
Output
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InByb2Z0b3BAZW1haWwuY29tIiwiaWF0IjoxNjYzMTkxOTcxLCJleHAiOjE2NjMyNzgzNzEsInN1YiI6ImFlMzJkNzhjLTgxNTMtNDFlZi1hZTAxLTZmYTdmODk4NTQwNSJ9.bWgk6nznX72eEv-N6b3h5JPVkrPoMwiLahwo0HJd3dY"
}
body is required for this request Body Example:
{
"name": "RonaldyEDITADMIDDD",
"email": "ronaldao@email.com",
"cellNumber": "991997765"
}
token authorization is required for this request Auth Example:
'Bearer {token}'
- Is not be able to update a different Guardian
Output
{
"id": "faeafbb9-0700-4938-aa0b-994e2526c49a",
"name": "RonaldyEDITADMIDDD",
"email": "ronaldao@email.com",
"cellNumber": "991997765"
}
body is not required for this request
token authorization is required for this request Auth Example:
'Bearer {token}'
- Is not be able to other guardians delete others
Output
no body response for this request
body is not required for this request
token authorization is required for this request Auth Example:
'Bearer {token}'
- Everybody with token can do a request
Output
[
{
"id": "b6141699-e290-46ef-aad3-cb04efbace54",
"name": "Matemática Divertida",
"hour": "09:30",
"isOpen": true,
"teacher": {
"id": "ae32d78c-8153-41ef-ae01-6fa7f8985405",
"name": "CláudioEDITADOO",
"email": "proftop@email.com",
"subject": "Matemática",
"bio": "Eu gosto muito de ensinar",
"createdAt": "2022-09-14T21:18:13.581Z",
"updatedAt": "2022-09-14T21:56:21.515Z",
"isActive": true
},
"students": [
{
"id": "048442cd-73a6-4633-992f-b599a0fe4c61",
"name": "Celio",
"email": "aluno2@email.com",
"createdAt": "2022-09-14T21:51:53.695Z",
"updatedAt": "2022-09-14T21:51:53.695Z",
"age": 12,
"isActive": true
}
]
}
]
body is not required for this request
token authorization is required for this request Auth Example:
'Bearer {token}'
- Everybody with token can do a request
Output
{
"id": "b6141699-e290-46ef-aad3-cb04efbace54",
"name": "Matemática Divertida",
"hour": "09:30",
"isOpen": true,
"teacher": {
"id": "ae32d78c-8153-41ef-ae01-6fa7f8985405",
"name": "CláudioEDITADOO",
"email": "proftop@email.com",
"subject": "Matemática",
"bio": "Eu gosto muito de ensinar",
"createdAt": "2022-09-14T21:18:13.581Z",
"updatedAt": "2022-09-14T21:56:21.515Z",
"isActive": true
},
"students": [
{
"id": "048442cd-73a6-4633-992f-b599a0fe4c61",
"name": "Celio",
"email": "aluno2@email.com",
"createdAt": "2022-09-14T21:51:53.695Z",
"updatedAt": "2022-09-14T21:51:53.695Z",
"age": 12,
"isActive": true
}
]
}
body is required for this request Body Example:
{
"name": "Matemática Divertida",
"hour": "09:30"
}
token authorization is required for this request Auth Example:
'Bearer {token}'
- Only a Teacher can create a class
Output
{
"id": "b6141699-e290-46ef-aad3-cb04efbace54",
"name": "Matemática Divertida",
"hour": "09:30",
"teacher": {
"id": "ae32d78c-8153-41ef-ae01-6fa7f8985405",
"name": "Cláudio",
"email": "proftop@email.com",
"subject": "Matemática",
"bio": "Eu gosto muito de ensinar",
"createdAt": "2022-09-14T21:18:13.581Z",
"updatedAt": "2022-09-14T21:18:13.581Z",
"isActive": true
},
"students": [],
"isOpen": true
}
body is required for this request Body Example:
{
"name": "Matemática DivertidaEDITADO",
"hour": "09:30"
}
token authorization is required for this request Auth Example:
'Bearer {token}'
- Only classes's teacher can update the class
Output
{
"id": "b6141699-e290-46ef-aad3-cb04efbace54",
"name": "Matemática DivertidaEDITADO",
"hour": "09:30",
"isOpen": true,
"teacher": {
"id": "ae32d78c-8153-41ef-ae01-6fa7f8985405",
"name": "Cláudio",
"email": "proftop@email.com",
"subject": "Matemática",
"bio": "Eu gosto muito de ensinar",
"createdAt": "2022-09-14T21:18:13.581Z",
"updatedAt": "2022-09-14T21:56:21.515Z",
"isActive": true
},
"students": [
{
"id": "048442cd-73a6-4633-992f-b599a0fe4c61",
"name": "Celio",
"email": "aluno2@email.com",
"createdAt": "2022-09-14T21:51:53.695Z",
"updatedAt": "2022-09-14T21:51:53.695Z",
"age": 12,
"isActive": true
}
]
}
body is not required for this request
token authorization is required for this request Auth Example:
'Bearer {token}'
- Only class's teacher can delete his class
Output
no body response for this request
body is not required for this request
token authorization is not required for this request
Output
[
{
"id": "048442cd-73a6-4633-992f-b599a0fe4c61",
"name": "Celio",
"email": "aluno2@email.com",
"createdAt": "2022-09-14T21:51:53.695Z",
"updatedAt": "2022-09-14T21:51:53.695Z",
"age": 12,
"isActive": true
}
]
body is not required for this request
token authorization is not required for this request
Output
{
"students": {
"id": "048442cd-73a6-4633-992f-b599a0fe4c61",
"name": "Celio",
"email": "aluno2@email.com",
"createdAt": "2022-09-14T21:51:53.695Z",
"updatedAt": "2022-09-14T21:51:53.695Z",
"age": 12,
"isActive": true
},
"studentClass": []
}
body is required for this request Body Example:
{
"email":"aluno2@email.com",
"password": "1234"
}
token authorization is not required for this request
- Generated token expires in one day
Output
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InByb2Z0b3BAZW1haWwuY29tIiwiaWF0IjoxNjYzMTkxOTcxLCJleHAiOjE2NjMyNzgzNzEsInN1YiI6ImFlMzJkNzhjLTgxNTMtNDFlZi1hZTAxLTZmYTdmODk4NTQwNSJ9.bWgk6nznX72eEv-N6b3h5JPVkrPoMwiLahwo0HJd3dY"
}
body is required for this request Body Example:
{
"name": "CelioEDITADO",
"password": "1234",
"age": 15
}
token authorization is required for this request Auth Example:
'Bearer {token}'
- Only student's guardian can update his student
Output
{
"id": "a0175f2f-6f98-4448-a64c-e3fd0caad364",
"name": "CelioEDITADO",
"email": "aluno3@email.com",
"createdAt": "2022-09-14T22:49:29.435Z",
"updatedAt": "2022-09-14T22:50:12.842Z",
"age": 15,
"isActive": true
}
body is not required for this request
token authorization is required for this request Auth Example:
'Bearer {token}'
- Only student's guardian can delete his student
Output
no body response for this request