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