@RestController
@RequestMapping(value="/pacientes")
public class PacienteResource
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private PacienteService |
pacienteService |
| Constructor and Description |
|---|
PacienteResource(PacienteService pacienteService) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<java.util.List<Paciente>> |
getPacienteByDocumento(java.lang.String documento) |
org.springframework.http.ResponseEntity<Paciente> |
getPacienteById(java.lang.Integer id) |
org.springframework.http.ResponseEntity<java.util.List<Paciente>> |
getPacienteByName(java.lang.String nombrePaciente) |
private final PacienteService pacienteService
public PacienteResource(PacienteService pacienteService)
@GetMapping(value="/find/{id}")
public org.springframework.http.ResponseEntity<Paciente> getPacienteById(@PathVariable(value="id")
java.lang.Integer id)
@GetMapping(value="/encontrar/nombre/{nombrePaciente}")
public org.springframework.http.ResponseEntity<java.util.List<Paciente>> getPacienteByName(@PathVariable(value="nombrePaciente")
java.lang.String nombrePaciente)
@GetMapping(value="/encontrar/documento/{documento}")
public org.springframework.http.ResponseEntity<java.util.List<Paciente>> getPacienteByDocumento(@PathVariable(value="documento")
java.lang.String documento)