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 @ 30127846
......@@ -17,6 +17,66 @@ Envios para o back podem ser de três tipos, não se limitando a usar somente um
3. Dados do Corpo (**Payload**): dados enviados no corpo (body) da requisição
---
### POST /login/
#### Params:
Nenhum parâmetro esperado
#### Query string:
Nenhuma query string esperada
#### Payload:
```
{
email: "str",
password: "str",
isTeacher: 1
}
```
#### Responses:
- 204: NO_CONTENT
- 400:
```
{
status: 400,
msg: "Bad request",
errors: [
{
value: "joao.severo",
msg: "Invalid value for \"email\""
}
]
}
```
- 401:
```
{
status: 401,
msg: "Bad request",
errors: [
{
value: "email/password",
msg: "Invalid email or password"
}
]
}
```
- 500
```
{
status: 500,
msg: "Internal error occurred",
errors: [
{
value: Any,
msg: "str"
}
]
}
```
---
### GET /students/
......@@ -241,10 +301,10 @@ Nenhuma query string esperada
```
---
### PUT /students/{id}/
### PATCH /students/{id}/
#### Params:
- id: int = id do aluno a atualizar dados
- id: int = id do aluno a alterar pacialmente informações
#### Query string:
Nenhuma query string esperada
......@@ -258,78 +318,11 @@ Nenhuma query string esperada
semester: 5,
course: "Engenharia de Software",
gender: "Masculino",
institution: "PUCRS"
}
```
#### Responses
- 204: NO_CONTENT
- 400:
```
{
status: 400,
msg: "Bad request",
errors: [
{
value: "joao.severo",
msg: "Invalid value for \"email\""
}
]
}
```
- 500
```
{
status: 500,
msg: "Internal error occurred",
errors: [
{
value: Any,
msg: "str"
}
]
}
```
---
### PATCH /students/{id}/
#### Params:
- id: int = id do aluno a complementar informações
#### Query string:
Nenhuma query string esperada
#### Payload:
```
{
description: "str",
experienceId: 1
institution: "PUCRS",
description: "str",
experienceId: 1
}
```
---
### POST /login/
#### Params:
Nenhum parâmetro esperado
#### Query string:
Nenhuma query string esperada
#### Payload:
```
{
email: "str",
password: "str",
isTeacher: 1
}
```
#### Responses:
- 204: NO_CONTENT
......@@ -346,15 +339,15 @@ Nenhuma query string esperada
]
}
```
- 401:
- 404
```
{
status: 401,
status: 404,
msg: "Bad request",
errors: [
{
value: "email/password",
msg: "Invalid email or password"
value: 10,
msg: "Student not found with id=10"
}
]
}
......
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