... | @@ -258,7 +258,7 @@ Nenhuma query string esperada |
... | @@ -258,7 +258,7 @@ Nenhuma query string esperada |
|
semester: 5,
|
|
semester: 5,
|
|
course: "str",
|
|
course: "str",
|
|
gender: "str",
|
|
gender: "str",
|
|
institution: "str",
|
|
institution: "str"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
```
|
|
```
|
... | @@ -315,7 +315,7 @@ Nenhuma query string esperada |
... | @@ -315,7 +315,7 @@ Nenhuma query string esperada |
|
### POST /login/
|
|
### POST /login/
|
|
|
|
|
|
#### Params:
|
|
#### Params:
|
|
Nenhum parâmetro esperadao
|
|
Nenhum parâmetro esperado
|
|
|
|
|
|
#### Query string:
|
|
#### Query string:
|
|
Nenhuma query string esperada
|
|
Nenhuma query string esperada
|
... | @@ -434,3 +434,72 @@ Nenhum payload esperado |
... | @@ -434,3 +434,72 @@ Nenhum payload esperado |
|
```
|
|
```
|
|
---
|
|
---
|
|
|
|
|
|
|
|
### POST /teachers/
|
|
|
|
|
|
|
|
#### Params:
|
|
|
|
Nenhum parâmetro esperado
|
|
|
|
|
|
|
|
#### Query string:
|
|
|
|
Nenhuma query string esperada
|
|
|
|
|
|
|
|
#### Payload:
|
|
|
|
```
|
|
|
|
{
|
|
|
|
status: 200,
|
|
|
|
msg: "Success",
|
|
|
|
teacher: {
|
|
|
|
name: "str",
|
|
|
|
birthday: 11/06/1999,
|
|
|
|
email: "str",
|
|
|
|
lattersURL: "str",
|
|
|
|
h_index: 10,
|
|
|
|
gender: "str",
|
|
|
|
institution: "str"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Responses:
|
|
|
|
- 201:
|
|
|
|
```
|
|
|
|
{
|
|
|
|
status: 200,
|
|
|
|
msg: "Success",
|
|
|
|
teacher: {
|
|
|
|
id: 10,
|
|
|
|
name: "str",
|
|
|
|
birthday: 11/06/1999,
|
|
|
|
email: "str",
|
|
|
|
lattersURL: "str",
|
|
|
|
h_index: 10,
|
|
|
|
gender: {
|
|
|
|
name: "str"
|
|
|
|
},
|
|
|
|
institution: {
|
|
|
|
name: "str",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
- 400:
|
|
|
|
```
|
|
|
|
{
|
|
|
|
status: 400,
|
|
|
|
msg: "Bad request",
|
|
|
|
errors: [
|
|
|
|
{
|
|
|
|
value: "joao.severo",
|
|
|
|
msg: "Invalid value for \"email\""
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
- 500
|
|
|
|
```
|
|
|
|
{
|
|
|
|
status: 500,
|
|
|
|
msg: "Internal error occurred",
|
|
|
|
errors: Any
|
|
|
|
}
|
|
|
|
``` |
|
|
|
\ No newline at end of file |