The Theatre API Service, developed using Django Rest Framework (DRF), offers a range of essential features for efficient theater management. It enables users to handle reservations and tickets, secures access with JWT authentication, and automatically filters API endpoints based on user permissions. Theatre administrators can create and manage halls, plays, and performances, with advanced filtering options for plays and performances. Users can easily search for plays by title, genres, and actors. Comprehensive documentation is available at /api/doc/swagger
or /api/doc/redoc
, making it user-friendly and accessible for both staff and patrons.
Linux/MacOS:
git clone https://github.com/denys-source/theatre-api
cd theatre-api/
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
python3 manage.py migrate
python3 manage.py runserver
Windows:
git clone https://github.com/denys-source/theatre-api
cd theatre-api/
python venv venv
venv\Scripts\activate
pip install -r requirements.txt
python manage.py migrate
python manage.py runserver
Docker should be installed
docker-compose up --build
- Create user at
/api/user/register
- Get access and refresh token at
/api/user/token/
- Managing reservations and tickets
- JWT authentication
- API root endpoints are filtered based on current user permissions
- Creating and managing theatre halls, plays and performances
- Filtering plays by title, genres and actors
- Filtering performances by date and plays
- Documentation can be accessed at
/api/doc/swagger
or/api/doc/redoc