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 endpoint ​/rotas​/{codigo_municipio}​/{id_rota}​/alunos com os operadores GET/POST/DELETE #19

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

Comments

@marcosroriz
Copy link
Collaborator

O operador GET retorna um vetor com os alunos associada à aquela rota.

[ 
  { 
    "id_aluno": 12,
    "nome": "XYZ",
   } ,
  { }, 
  {  }
]

O operador DELETE apaga o vínculo da rotas com aquele aluno. Recebe como parâmetro um conjunto de alunos.

[ 
    { "id_aluno": 2 },
    { "id_aluno": 10}
]

O operador POST vincula a rotas com os alunos do endpoint.

[ 
    { "id_aluno": 2 },
    { "id_aluno": 10}
]
@marcosroriz marcosroriz changed the title Criar endpoint ​/rotas​/{codigo_municipio}​/{id_rota}​/alunos com os operadores GET/POST/DELETE #17 #18 Criar endpoint ​/rotas​/{codigo_municipio}​/{id_rota}​/alunos com os operadores GET/POST/DELETE Oct 26, 2021
@umarley
Copy link
Owner

umarley commented Jan 12, 2022

@marcosroriz endpoints criados e documentados no swagger.

@umarley umarley closed this as completed Jan 12, 2022
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