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
Show whitespace changes
Inline Side-by-side
contratos.md
View page @ a64750d5
...@@ -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: "11/06/1999", birthday: "2022-04-02",
email: "str", email: "st[email protected]",
semester: 5, semester: 5,
course: "str", course: "Engenharia de Software",
gender: "str", gender: "Masculino",
institution: "str" institution: "PUCRS"
}
} }
``` ```
...@@ -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
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