sriprasanth1122 / Day36-hall-booking

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hi Welcome to my Hall Booking API Task. Consider this as a complete guide for the same.
  1. To get the all room Details I have written a get request in https://hall-booking-delta.vercel.app

  2. We can create a room with https://hall-booking-delta.vercel.app/create-room

Sample Body for Creating API :-

{

    "name": "medium",
    "seats": 50,
    "roomid": 102,
    "amenities": [
        "internet_access",
        "food",
        "ac",
        "tv"
    ],
    "price": 500,
    "BookingStatus": "Available",
    "customerDetails": {
        "cutstomerName": "",
        "date": "",
        "start": "",
        "end": "",
        "roomId": ""
   
   }
}
  1. Booking a room made easy with a post request in https://hall-booking-delta.vercel.app/room-booking

Sample Body for Booking a room : -

        {
        
        
        "name": "ram",
        "date": "2022-09-23",
        "start": "10:00",
        "end": "20:00",
        "roomId": 101
        
        
    }
  1. We can get the Booked Room details using a get request in https://hall-booking-delta.vercel.app/booked-room-details

  2. We can get the Booked Customer details using a get request in https://hall-booking-delta.vercel.app/booked-customer-details

About


Languages

Language:JavaScript 100.0%