Giter Club home page Giter Club logo

hall_booking's Introduction

Hi Welcome to my Hall Booking API Task.
I have deployed this task in Render.
https://hall-booking-l4ak.onrender.com

1. We can create a room with https://hall-booking-l4ak.onrender.com/create_room
Sample request for Creating API:
{
    "roomID":"01",
    "capacity":"60",
    "amenities":["Security","AC","Reception","Speakers","Generator"],
    "price":"Rs. 1000"
}

A success message will be returned as response. {"message": "Room created successfully"}

2. To get the all room Details I have written a get request in https://hall-booking-l4ak.onrender.com/room_details

3. Booking a room with a post request in https://hall-booking-l4ak.onrender.com/room_booking

Sample Body for Booking a room:
{       
    "roomID":"01",
    "customerName":"Vishnu",
    "date":"23-05-2023",
    "startTime":"11:00 AM",
    "endTime":"11:00 PM"
 
}

After Successfull booking {"message": "Booking Successful"} response will be returned. 

In case we try to book a room which doesnt exist or already booked the following response will be returned

{
    "message": "Booking Failed",
    "instruction": "Check room exist or not and check the availability"
}

4. We can get the Booked Room details using a get request in https://hall-booking-l4ak.onrender.com/booked-room-details

5. We can get the Booked Customer details using a get request in https://hall-booking-l4ak.onrender.com/booked-customer-details


hall_booking's People

Contributors

smilevp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.