This is just a very simple and minimal API to emulate the Service Booking backend.
API Route | HTTP Verb | Return Type |
---|---|---|
/ | get | String |
/booking | post | String |
/booking return values
Success - Submit
Error - Submit
Error - Empty Submit
Error - Form
Error - Fully Booked
Error - uKids Fully Booked
Error - Booking Exist
Error - Insert
- Download the source code.
- Execute the
npm install
command inside the folder whereindex.js
is located.
- Once all the packages are installed run
node index
- Open http://localhost:180 in your browser to see the result.