Explore a live preview of the project here.
Admin
curl --location --request POST 'https://gestion-bibliotique-pfe.netlify.app/api/categories/' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3YjM5ODM0NTc1N2EyYTY4MWU5Njc4OSIsInJvbGUiOiJjbGllbnQiLCJpYXQiOjE3NDAyNzc0NjIsImV4cCI6MTc0MDM2Mzg2Mn0.fnnI0u86yQMPIKWghW2pxOHwjzmp0mjnO6spNZUjnsM' \
--header 'Content-Type: application/json' \
--data-raw '{
"nom": "doloribus",
"description": "Vinum aufero solvo cometes. Vix aegrotatio aveho compono canonicus quis. Curatio dedecor cedo cunctatio abeo cribro alter ademptio hic."
}'
{
"success": "true",
"message": "Category created successfully!",
"data": {
"categorie": {
"_id": "4BGwAseTZTLgotDaSWT-j",
"nom": "sapiente",
"description": "Adversus ambulo aduro vitium commodi sol vapulus consuasor cruciamentum. Defetiscor tollo tumultus censura caelum stillicidium. Auctor coma tot assumenda."
}
}
}