InnControl
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.
- Clone the repository:
https://github.com/joseph-tech-dev/hotel-backend.git - Change into the project directory:
cd Hotel - Install dependencies:
pip install -r requirements.txt
- Start the server:
python3 manage.py runserver - Access the API documentation at
http://localhost:8000/docs
| 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 |
Contributions are welcome.
This project is licensed under the MIT License.