We have created an API for room Booking service for frontend to create a room, create a booking, view all rooms with booking details and view all bookings.
Task:
1.Creating a Room with features and price: POST Method: https://hall-booking-dlb7.onrender.com/createRoom
Ex:
{
"noSeats": 3,
"amenities": ["AC", "Geyser","Wifi","TV"],
"price": 900
}
2.Booking a Room with Customer Details: POST Method: https://hall-booking-dlb7.onrender.com/createBooking
Ex:
{
"custName": "Ananth",
"date": "04/19/2022",
"startTime": "11:00",
"endTime": "22:00"
}
-
Listing all Rooms with Booked details: GET Method: https://hall-booking-dlb7.onrender.com/getAllRooms
-
List all Customers with Booked data: GET Method: https://hall-booking-dlb7.onrender.com/getAllBookings