Interface NoteClient
@FeignClient(name="note-service",
url="${note.url}")
public interface NoteClient
Client Feign pour communiquer avec le microservice des notes médicales.
Ce client permet de récupérer les notes associées à un patient.
-
Method Summary
Modifier and TypeMethodDescriptiongetNotesByPatientId
(int patId, String authorization) Récupère toutes les notes liées à un patient à partir de son identifiant.
-
Method Details
-
getNotesByPatientId
@GetMapping("{patId}") List<NoteDto> getNotesByPatientId(@PathVariable("patId") int patId, @RequestHeader("Authorization") String authorization) Récupère toutes les notes liées à un patient à partir de son identifiant.- Parameters:
patId
- L'identifiant du patientauthorization
- Le token JWT à inclure dans l'en-tête pour l'authentification- Returns:
- Une liste d'objet correspondant aux notes du patient
-