Interface PatientClient
@FeignClient(name="patient-service",
url="${patient.url}")
public interface PatientClient
Client Feign pour communiquer avec le microservice des patients.
Ce client permet de récupérer les informations d'un patient.
-
Method Summary
Modifier and TypeMethodDescriptiongetPatientById
(int id, String authorization) Récupère les informations d'un patient à partir de son identifiant.
-
Method Details
-
getPatientById
@GetMapping("{id}") PatientDto getPatientById(@PathVariable("id") int id, @RequestHeader("Authorization") String authorization) Récupère les informations d'un patient à partir de son identifiant.- Parameters:
id
- L'identifiant du patientauthorization
- Le token JWT à inclure dans l'en-tête pour l'authentification- Returns:
- Un objet contenant les données du patient
-