A simple web app to demonstrate API and frontend.
git clone https://github.com/mfferreira/carpark.git
cd carpark/api
npm install
node index.js cars.xml
cd carpark/frontend
npm install
npm run dev
All cars in all parking lots.
All cars in :lotid
lot. It also adds the value and discount calculated with :hours
.
Summary of value and discount calculated with :hours
for all lots.
Add car to :lotid
lot. Payload example:
{
brand: 'BMW',
licenseplate: '99aa99',
parkingtime: '1984-02-28T09:03:00+00:00',
}