Skip to content

joseph-tech-dev/hotel-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Name

InnControl

Description

This API provides a simple way to manage hotel,room and service bookings. It allows users to create, read, update, and delete room bookings, as well as manage rooms and their availability.

Installation

  1. Clone the repository: https://github.com/joseph-tech-dev/hotel-backend.git
  2. Change into the project directory: cd Hotel
  3. Install dependencies: pip install -r requirements.txt

Usage

  1. Start the server: python3 manage.py runserver
  2. Access the API documentation at http://localhost:8000/docs

Endpoints

Method Endpoint Description
GET /guest Get a list of all guests
GET /guest/guest_id Get a specific guest by ID
POST /guest Create a new guest
PUT /guest/guest_id Update a specific guest by ID
DELETE /guest/guest_id Delete a specific guest by ID
GET /room Get a list of all rooms
GET /room/room_id Get a specific room by ID
POST /room/ POST to book a room
PUT /room/room_id Update a specific room by ID
DELETE /room/room_id Delete a specific room by ID
GET /booking/ Get a list of all bookings
GET /booking/booking_id Get a specific room by ID
POST /booking/ Create a new booking
PUT /booking/booking_id Update a specific booking with ID
DELETE /booking/booking_id Delete a specific booking by ID
GET /service/ Get a list of all services
GET /service/service_id Get a specific service with ID
POST /service/ Create a new service
PUT /service/service_id Update a specific service with ID
DELETE /service/service_id Delete a specific service by ID
GET /service-usage/ Get,Update,Create and Delete service usages

Contributing

Contributions are welcome.

License

This project is licensed under the MIT License.

About

Booking api

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages