... | @@ -42,20 +42,14 @@ Nenhum payload esperado |
... | @@ -42,20 +42,14 @@ Nenhum payload esperado |
|
{
|
|
{
|
|
id: 11,
|
|
id: 11,
|
|
name: "str",
|
|
name: "str",
|
|
birthday: "11/06/1999",
|
|
birthday: "2022-04-02T00:00:00.000Z",
|
|
email: "str",
|
|
email: "str",
|
|
semester: 5,
|
|
semester: 5,
|
|
description: "str",
|
|
description: "str",
|
|
lattesURL: "str",
|
|
lattesURL: "str",
|
|
course: {
|
|
course: "str",
|
|
name: "str"
|
|
gender: "str",
|
|
},
|
|
institution: "str"
|
|
gender: {
|
|
|
|
name: "str"
|
|
|
|
}
|
|
|
|
institution: {
|
|
|
|
name: "str"
|
|
|
|
}
|
|
|
|
},
|
|
},
|
|
...
|
|
...
|
|
]
|
|
]
|
... | @@ -79,7 +73,12 @@ Nenhum payload esperado |
... | @@ -79,7 +73,12 @@ Nenhum payload esperado |
|
{
|
|
{
|
|
status: 500,
|
|
status: 500,
|
|
msg: "Internal error occurred",
|
|
msg: "Internal error occurred",
|
|
errors: Any
|
|
errors: [
|
|
|
|
{
|
|
|
|
value: Any,
|
|
|
|
msg: "str"
|
|
|
|
}
|
|
|
|
]
|
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
... | @@ -105,20 +104,14 @@ Nenhum payload esperado |
... | @@ -105,20 +104,14 @@ Nenhum payload esperado |
|
student: {
|
|
student: {
|
|
id: 11,
|
|
id: 11,
|
|
name: "str",
|
|
name: "str",
|
|
birthday: "11/06/1999",
|
|
birthday: "2022-04-02T00:00:00.000Z",
|
|
email: "str",
|
|
email: "str",
|
|
semester: 5,
|
|
semester: 5,
|
|
description: "str",
|
|
description: "str",
|
|
lattesURL: "str",
|
|
lattesURL: "str",
|
|
course: {
|
|
course: "str",
|
|
name:"str"
|
|
gender: "str",
|
|
},
|
|
institution: "str"
|
|
gender: {
|
|
|
|
name: "str"
|
|
|
|
},
|
|
|
|
institution: {
|
|
|
|
name: "str"
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
```
|
|
```
|
... | @@ -153,7 +146,12 @@ Nenhum payload esperado |
... | @@ -153,7 +146,12 @@ Nenhum payload esperado |
|
{
|
|
{
|
|
status: 500,
|
|
status: 500,
|
|
msg: "Internal error occurred",
|
|
msg: "Internal error occurred",
|
|
errors: Any
|
|
errors: [
|
|
|
|
{
|
|
|
|
value: Any,
|
|
|
|
msg: "str"
|
|
|
|
}
|
|
|
|
]
|
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
... | @@ -172,7 +170,7 @@ Nenhuma query string esperada |
... | @@ -172,7 +170,7 @@ Nenhuma query string esperada |
|
{
|
|
{
|
|
student: {
|
|
student: {
|
|
name: "str",
|
|
name: "str",
|
|
birthday: "11/06/1999",
|
|
birthday: "1999-06-11",
|
|
email: "str",
|
|
email: "str",
|
|
semester: 5,
|
|
semester: 5,
|
|
course: "str",
|
|
course: "str",
|
... | @@ -192,19 +190,13 @@ Nenhuma query string esperada |
... | @@ -192,19 +190,13 @@ Nenhuma query string esperada |
|
student: {
|
|
student: {
|
|
id: 1,
|
|
id: 1,
|
|
name: "str",
|
|
name: "str",
|
|
birthday: "11/06/1999",
|
|
birthday: "2022-04-02T00:00:00.000Z",
|
|
email: "str",
|
|
email: "str",
|
|
semester: 5,
|
|
semester: 5,
|
|
lattesURL: "str",
|
|
lattesURL: "str",
|
|
course: {
|
|
course: "str",
|
|
name:"str"
|
|
gender: "str",
|
|
},
|
|
institution: "str"
|
|
gender: {
|
|
|
|
name: "str"
|
|
|
|
},
|
|
|
|
institution: {
|
|
|
|
name: "str"
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
```
|
|
```
|
... | @@ -239,7 +231,12 @@ Nenhuma query string esperada |
... | @@ -239,7 +231,12 @@ Nenhuma query string esperada |
|
{
|
|
{
|
|
status: 500,
|
|
status: 500,
|
|
msg: "Internal error occurred",
|
|
msg: "Internal error occurred",
|
|
errors: Any
|
|
errors: [
|
|
|
|
{
|
|
|
|
value: Any,
|
|
|
|
msg: "str"
|
|
|
|
}
|
|
|
|
]
|
|
}
|
|
}
|
|
```
|
|
```
|
|
---
|
|
---
|
... | @@ -255,15 +252,13 @@ Nenhuma query string esperada |
... | @@ -255,15 +252,13 @@ Nenhuma query string esperada |
|
#### Payload:
|
|
#### Payload:
|
|
```
|
|
```
|
|
{
|
|
{
|
|
student: {
|
|
name: "str",
|
|
name: "str",
|
|
birthday: "2022-04-02",
|
|
birthday: "11/06/1999",
|
|
email: "[email protected]",
|
|
email: "str",
|
|
semester: 5,
|
|
semester: 5,
|
|
course: "Engenharia de Software",
|
|
course: "str",
|
|
gender: "Masculino",
|
|
gender: "str",
|
|
institution: "PUCRS"
|
|
institution: "str"
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
... | @@ -289,7 +284,12 @@ Nenhuma query string esperada |
... | @@ -289,7 +284,12 @@ Nenhuma query string esperada |
|
{
|
|
{
|
|
status: 500,
|
|
status: 500,
|
|
msg: "Internal error occurred",
|
|
msg: "Internal error occurred",
|
|
errors: Any
|
|
errors: [
|
|
|
|
{
|
|
|
|
value: Any,
|
|
|
|
msg: "str"
|
|
|
|
}
|
|
|
|
]
|
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
... | @@ -307,11 +307,8 @@ Nenhuma query string esperada |
... | @@ -307,11 +307,8 @@ Nenhuma query string esperada |
|
#### Payload:
|
|
#### Payload:
|
|
```
|
|
```
|
|
{
|
|
{
|
|
student: {
|
|
description: "str",
|
|
description: "str",
|
|
experienceId: 1
|
|
experienceId: 1,
|
|
|
|
lattesId: 8979
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
```
|
|
```
|
|
---
|
|
---
|
... | @@ -367,7 +364,77 @@ Nenhuma query string esperada |
... | @@ -367,7 +364,77 @@ Nenhuma query string esperada |
|
{
|
|
{
|
|
status: 500,
|
|
status: 500,
|
|
msg: "Internal error occurred",
|
|
msg: "Internal error occurred",
|
|
errors: Any
|
|
errors: [
|
|
|
|
{
|
|
|
|
value: Any,
|
|
|
|
msg: "str"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
---
|
|
|
|
### GET /teachers/
|
|
|
|
|
|
|
|
#### Params:
|
|
|
|
Nenhum parâmetro esperado
|
|
|
|
|
|
|
|
#### Query string:
|
|
|
|
Nenhuma query string esperada
|
|
|
|
|
|
|
|
#### Payload:
|
|
|
|
Nenhum payload esperado
|
|
|
|
|
|
|
|
#### Responses:
|
|
|
|
- 200:
|
|
|
|
```
|
|
|
|
{
|
|
|
|
status: 200,
|
|
|
|
msg: "Success",
|
|
|
|
teachers: [
|
|
|
|
{
|
|
|
|
id: 10,
|
|
|
|
name: "name",
|
|
|
|
birthday: "2022-04-02T00:00:00.000Z",
|
|
|
|
email: "[email protected]",
|
|
|
|
lattesURL: "http://lattes.cnpq.br/123",
|
|
|
|
hIndex: 10,
|
|
|
|
gender: "str",
|
|
|
|
degrees: [
|
|
|
|
{
|
|
|
|
course: "Engenharia De Software",
|
|
|
|
institution: "PUCRS",
|
|
|
|
degreeType: "Pós"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
...
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
- 400:
|
|
|
|
```
|
|
|
|
{
|
|
|
|
status: 400,
|
|
|
|
msg: "Bad request",
|
|
|
|
errors: [
|
|
|
|
{
|
|
|
|
value: "",
|
|
|
|
msg: "Invalid value for \"id\""
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
- 500
|
|
|
|
```
|
|
|
|
{
|
|
|
|
status: 500,
|
|
|
|
msg: "Internal error occurred",
|
|
|
|
errors: [
|
|
|
|
{
|
|
|
|
value: Any,
|
|
|
|
msg: "str"
|
|
|
|
}
|
|
|
|
]
|
|
}
|
|
}
|
|
```
|
|
```
|
|
---
|
|
---
|
... | @@ -391,17 +458,19 @@ Nenhum payload esperado |
... | @@ -391,17 +458,19 @@ Nenhum payload esperado |
|
msg: "Success",
|
|
msg: "Success",
|
|
teacher: {
|
|
teacher: {
|
|
id: 10,
|
|
id: 10,
|
|
name: "str",
|
|
name: "name",
|
|
birthday: 11/06/1999,
|
|
birthday: "2022-04-02T00:00:00.000Z",
|
|
email: "str",
|
|
email: "[email protected]",
|
|
lattesURL: "str",
|
|
lattesURL: "http://lattes.cnpq.br/123",
|
|
hIndex: 10,
|
|
hIndex: 10,
|
|
gender: {
|
|
gender: "str",
|
|
name: "str"
|
|
degrees: [
|
|
},
|
|
{
|
|
institution: {
|
|
course: "Engenharia De Software",
|
|
name: "str"
|
|
institution: "PUCRS",
|
|
}
|
|
degreeType: "Pós"
|
|
|
|
}
|
|
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
```
|
|
```
|
... | @@ -436,7 +505,12 @@ Nenhum payload esperado |
... | @@ -436,7 +505,12 @@ Nenhum payload esperado |
|
{
|
|
{
|
|
status: 500,
|
|
status: 500,
|
|
msg: "Internal error occurred",
|
|
msg: "Internal error occurred",
|
|
errors: Any
|
|
errors: [
|
|
|
|
{
|
|
|
|
value: Any,
|
|
|
|
msg: "str"
|
|
|
|
}
|
|
|
|
]
|
|
}
|
|
}
|
|
```
|
|
```
|
|
---
|
|
---
|
... | @@ -452,14 +526,20 @@ Nenhuma query string esperada |
... | @@ -452,14 +526,20 @@ Nenhuma query string esperada |
|
#### Payload:
|
|
#### Payload:
|
|
```
|
|
```
|
|
{
|
|
{
|
|
name: "str",
|
|
email: "[email protected]",
|
|
birthday: 11/06/1999,
|
|
password: "password",
|
|
email: "str",
|
|
name: "name",
|
|
lattesId: 1087,
|
|
lattesId: 123,
|
|
|
|
birthday: "2022-04-02",
|
|
|
|
genderId: 1,
|
|
hIndex: 10,
|
|
hIndex: 10,
|
|
gender: "str",
|
|
degrees: [
|
|
institution: "str",
|
|
{
|
|
password: "str"
|
|
institution: "PUCRS",
|
|
|
|
course: "Engenharia De Software",
|
|
|
|
degreeTypeId: 1
|
|
|
|
}
|
|
|
|
]
|
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
... | @@ -471,17 +551,19 @@ Nenhuma query string esperada |
... | @@ -471,17 +551,19 @@ Nenhuma query string esperada |
|
msg: "Success",
|
|
msg: "Success",
|
|
teacher: {
|
|
teacher: {
|
|
id: 10,
|
|
id: 10,
|
|
name: "str",
|
|
name: "name",
|
|
birthday: 11/06/1999,
|
|
birthday: "2022-04-02T00:00:00.000Z",
|
|
email: "str",
|
|
email: "[email protected]",
|
|
lattesURL: "str",
|
|
lattesURL: "http://lattes.cnpq.br/123",
|
|
hIndex: 10,
|
|
hIndex: 10,
|
|
gender: {
|
|
gender: "Masculino",
|
|
name: "str"
|
|
degrees: [
|
|
},
|
|
{
|
|
institution: {
|
|
course: "Engenharia De Software",
|
|
name: "str",
|
|
institution: "PUCRS",
|
|
}
|
|
degreeType: "Pós"
|
|
|
|
}
|
|
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
```
|
|
```
|
... | @@ -504,6 +586,11 @@ Nenhuma query string esperada |
... | @@ -504,6 +586,11 @@ Nenhuma query string esperada |
|
{
|
|
{
|
|
status: 500,
|
|
status: 500,
|
|
msg: "Internal error occurred",
|
|
msg: "Internal error occurred",
|
|
errors: Any
|
|
errors: [
|
|
|
|
{
|
|
|
|
value: Any,
|
|
|
|
msg: "str"
|
|
|
|
}
|
|
|
|
]
|
|
}
|
|
}
|
|
``` |
|
``` |
|
|
|
\ No newline at end of file |