sherifelkhiat / Xstudio-booking

0 stars 0 forks source link

Generate list of slots out of the day selected from customer #3

Open sherifelkhiat opened 3 months ago

sherifelkhiat commented 3 months ago

Create an GET API that take a date that customer select and return a list of slot of that day depending on the following criteria's:

  1. duration of the product (service)
  2. the time difference between the requested service city and the previous order city
  3. of course you will remove the already booked slots

Example:

a working day from 7 am to 11 am and product duration is 2 hours and the cities difference is half an hour how time slots will be appear like this

7:00 7:30 8:00 8:30

you will ask why 8:30 because the duration of the product + city difference = 2.5 hours I will explain more about this issue