A Django REST API for managing bus reservations. This system allows users to search for buses based on source, destination, and date, make seat reservations, and view their booking history.
- Search buses based on source, destination, and date
- Seat reservation system
- View reservation history
- Swagger API documentation
- Python 3.10
- Django 4.2.7
- Django REST Framework 3.14
- SQLite Database
- drf-yasg for API documentation
git clone https://github.com/tarun2599/bus-reservation.git
cd bus-reservation
python -m venv newtonschool
source newtonschool/bin/activate # On Windows: newtonschool\Scripts\activate
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py loaddata bus_reservation/fixtures/bus_data.json
python manage.py runserver
API documentation is available via Swagger UI at:
Swagger UI: http://localhost:8000/swagger/
You can download the Postman collection to test the API endpoints.