Skip to content

denys-source/theatre-api

Repository files navigation

Theatre API 🍿

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.

⚙️ Installing using GitHub

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

🐳 Running with docker

Docker should be installed

docker-compose up --build

🔓 Getting access

  1. Create user at /api/user/register
  2. Get access and refresh token at /api/user/token/

📍 Features

  • 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

📋 DB scheme

image

✅ Demo

image

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published