Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • U UCON Wiki
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • UCON
  • UCON Wiki
  • Wiki
  • contratos

contratos · Changes

Page history
Update contratos authored Apr 20, 2022 by João Vitor Bernardi Severo's avatar João Vitor Bernardi Severo
Hide whitespace changes
Inline Side-by-side
contratos.md
View page @ a64750d5
......@@ -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",
semester: 5,
course: "str",
gender: "str",
institution: "str"
}
name: "str",
birthday: "2022-04-02",
email: "[email protected]",
semester: 5,
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
}
description: "str",
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
Clone repository
  • Gerência
  • Instalação
  • Retro
  • Utilizando a wiki
    • adicionando imagens
    • escrevendo em markdown
    • wiki no editor de texto
  • arquitetura
  • banco_dados
  • codigo
  • configuracao
  • contratos
  • design_mockups
  • escopo
  • estudos
  • gerencia
View All Pages