Explore a live preview of the project here.
Client
curl --location --request GET 'https://gestion-bibliotique-pfe.netlify.app/api/emprunts/client/67b54e2cbb49979f9658c5ed' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3YjFjZmY2MWUzNTYzOGJlMTUyZGY1NyIsInJvbGUiOiJhZG1pbiIsImlhdCI6MTczOTkzNDY3MCwiZXhwIjoxNzQwMDIxMDcwfQ.x-VeV6245fmwrCkuy1sw8951XQnpzLFlGEbHAAt1DZA'
{
"success": true,
"message": "Laverne Jones's emprunts fetched successfully!",
"data": [
{
"_id": "T3_5QjtL1JEGcgY9ywaSl",
"clientId": "fYpIJTXGsk4fBSdyyzQrz",
"livreId": "laAD0CHdOLpiXskfJUYOi",
"dateRetourPrevu": "2025-02-27T22:25:11.704Z",
"statut": "en cours",
"dateEmprunt": "2025-02-19T04:26:39.129Z"
},
{
"_id": "mBnJkHrhDb2ZCuIdr6KqJ",
"clientId": "WDpCZ8ip_-TDEA6Aym8K-",
"livreId": "2cIEqifitH9JXhFIEXisw",
"dateRetourPrevu": "2025-06-29T15:22:57.776Z",
"statut": "retourné",
"dateEmprunt": "2025-02-19T04:26:39.131Z",
"dateRetourEffectif": "2024-07-26T18:56:00.428Z"
}
]
}