Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • W 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
  • Dietoterapia
  • wiki
  • Wiki
  • endpoints

endpoints · Changes

Page history
Add "atendimento nutricional" endpoints authored Sep 15, 2018 by Rafael Victor Ruwer Araujo's avatar Rafael Victor Ruwer Araujo
Show whitespace changes
Inline Side-by-side
endpoints.md
View page @ 77ab005f
...@@ -737,3 +737,77 @@ Sem retorno de json ...@@ -737,3 +737,77 @@ Sem retorno de json
<summary><b>Deletar Por ID</b> &nbsp; DELETE api/pacientes/{id}</summary> <summary><b>Deletar Por ID</b> &nbsp; DELETE api/pacientes/{id}</summary>
<p>Sem retorno de JSON</p> <p>Sem retorno de JSON</p>
</details> </details>
8.&nbsp; **Atendimentos nutricionais:**
* <details>
<summary><b>Cadastrar</b> &nbsp; POST api/atendimentos</summary>
<pre>
{
"idAluno": 6,
"idPaciente": 1,
"idProfessor": 3,
"data": "2018-09-03"
}
</pre>
</details>
* <details>
<summary><b>Alterar</b> &nbsp; PUT api/atendimentos/update</summary>
<pre>
{
"id": 1,
"idAluno": 6,
"idPaciente": 1,
"idProfessor": 3,
"data": "2018-09-03",
"status": true
}
</pre>
</details>
* <details>
<summary><b>Buscar Por ID</b> &nbsp; GET api/atendimentos/{id}</summary>
<pre>
{
"id": 1,
"idAluno": 6,
"idPaciente": 1,
"idProfessor": 3,
"data": "2018-09-03",
"status": true
}
</pre>
</details>
* <details>
<summary><b>Buscar Todos</b> &nbsp; GET api/atendimentos</summary>
<pre>
{
"Atendimentos": [
{
"id": 1,
"idAluno": 6,
"idPaciente": 1,
"idProfessor": 3,
"data": "2018-09-03",
"status": true
},
{
"id": 1,
"idAluno": 7,
"idPaciente": 2,
"idProfessor": 4,
"data": "2018-08-25",
"status": false
}
]
}
</pre>
</details>
* <details>
<summary><b>Deletar Por ID</b> &nbsp; DELETE api/atendimentos/{id}</summary>
<p>Sem retorno de JSON</p>
<p><b>Atenção:</b> apenas o status é alterado para <pre>false</pre>.</p>
</details>
Clone repository
  • Arquitetura
  • Configuração
  • Requisitos
  • configuracoes
    • Angular
    • Diagrama ER
    • Git
    • IntelliJ
    • Wiki
  • endpoints
  • Home
  • mockups
  • problemas
  • sprints