From e86e789fcd88bdbddd7e295ceaab2a21711ee4ef Mon Sep 17 00:00:00 2001 From: "francois.baille" Date: Wed, 7 May 2025 21:47:13 +0200 Subject: [PATCH] Ajouter Patient --- Patient.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Patient.md diff --git a/Patient.md b/Patient.md new file mode 100644 index 0000000..70fbf89 --- /dev/null +++ b/Patient.md @@ -0,0 +1,25 @@ +## Patients + +### Endpoints Principaux + +| Méthode | Endpoint | Description | +|---------|------------------------------|--------------------------------------| +| `GET` | `/patients` | Liste tous les patients | +| `POST` | `/patients` | Créer un nouveau patient | +| `GET` | `/patients/{uid}` | Détails d'un patient | +| `PUT` | `/patients/{uid}` | Mettre à jour un patient | +| `DELETE`| `/patients/{uid}` | Supprimer un patient | + +### Exemple de Requête + +```http +POST /api/ems/patients +Content-Type: application/json +Authorization: Bearer {token} + +{ + "firstname": "Marie", + "lastname": "Curie", + "birthDate": "1867-11-07", + "bloodType": "O+" +} \ No newline at end of file