Open koushikruidas opened 3 months ago
/hotels api need to send 204 in case there is no resources in the database. -- Done
updated new path is for putmapping -> /hotel//{hotelId}/employees -> send userList in body.
hotels/("/{hotelId}/availability") -> need to send the bookingId with the response.
Button -> HotelList for the User/Owner (call /hotels (GETMapping)) -> BookingList as per the hotel (/bookings/hotel/{hotelId}/startDate/{startDate}/endDate/{endDate} -> Now no each booking there will be two option 1) add services. 2) checkout
In the current scenario if for a Owner there no hotels added then from UI there is no option to add hotels. Currently if there is no hotel then it is throwing errors.
please use the below api to add hotels:
https://ec2-13-127-66-53.ap-south-1.compute.amazonaws.com:9000//hotels -> POST Body:
{ "name": "Hotel Digonto Mela", "address": "Darjeeling", "phoneNumbers": [ "9000252103", "8002662116" ], "gstNumber": "19AAACH7409R1ZC", "employeeIds": [ 0 ] }