Ajouter Patient
parent
f37edca207
commit
e86e789fcd
25
Patient.md
Normal file
25
Patient.md
Normal file
@ -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+"
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user