Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Criar métodos DELETE e POST ​/escolas​/{codigo_municipio}​/{id_escola}​/alunos #16

Closed
marcosroriz opened this issue Oct 19, 2021 · 1 comment

Comments

@marcosroriz
Copy link
Collaborator

O endpoint de DETELE deverá excluir todos os alunos associados com os id enviados da tabela escolatemalunos.

[
  { "id_aluno": 12 }, 
  { "id_aluno": 14 }
]

Já o endpoint de POST deverá associar todos os alunos enviados a escola do endpoint.
O parâmetro será um vetor de objetos, em que cada objeto possui o id_aluno.

[
{ "id_aluno": 21 }, 
  { "id_aluno": 15 }
]
@umarley
Copy link
Owner

umarley commented Oct 25, 2021

@marcosroriz implementação realizada conforme solicitado. Documentação já disponibilizada no swagger e a alteração já em produção.

@umarley umarley closed this as completed Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants