Interfaccia moderna e semplice
Evitare problemi ai clienti o azioni manuali causate da prenotazioni rifiutate
curl -X POST \ https://parkingsadmin.com/api/bookings \ -H 'Authorization: Token eyJ0eXAiOiJKV1Qi' \ -d '{ "parking_id": "2", "vehicle_type": "car", "price": 19.55, "prepaid": true, "arrival_date": "2021-12-29", "arrival_time": "10:00", "departure_date": "2021-12-30", "departure_time": "10:00", "customer_name": "John Doe", "customer_phone": "+34999888777" }'
curl -X DELETE \ https://parkingsadmin.com/api/bookings/9999 \ -H 'Authorization: Token eyJ0eXAiOiJKV1Qi'
curl -X PUT \ https://parkingsadmin.com/api/bookings \ -H 'Authorization: Token eyJ0eXAiOiJKV1Qi' \ -d '{ "arrival_date": "2021-12-29", "arrival_time": "12:00", "departure_date": "2021-12-30", "departure_time": "12:00" }'