Authentification API
Toutes les requêtes API doivent inclure un token d'authentification Bearer dans le header HTTP `Authorization`. Ce jeton est configurable depuis votre espace d'administration.
Authorization: Bearer VOTRE_JETON_API
// Exemple de requête curl
curl -X GET "https://gesthotel.ci/api/v1/rooms" \
-H "Authorization: Bearer VOTRE_JETON" \
-H "Accept: application/json"
curl -X GET "https://gesthotel.ci/api/v1/rooms" \
-H "Authorization: Bearer VOTRE_JETON" \
-H "Accept: application/json"
Lister les chambres
Récupérez la liste des chambres et leurs statuts actuels (disponible, occupée, ménage).
Paramètres optionnels : `status` (clean, dirty, maintenance), `type_id`.
// Réponse JSON (200 OK)
{
"success": true,
"data": [
{ "id": 101, "numero": "101", "type": "Double", "statut": "disponible" }
]
}
{
"success": true,
"data": [
{ "id": 101, "numero": "101", "type": "Double", "statut": "disponible" }
]
}