Skip to content

Movie theatre ticket booking backend system using django Rest API Framework. Tech used- Django, Django rest framework, SQLite

Notifications You must be signed in to change notification settings

Hritiksum/Movie-theatre-ticket-booking-system_Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Movie-theatre-ticket-booking-system_Backend

TECH STACK Python, Django(Framework), SQLite database

SQLite database


automated testing

  • Customer table (ID,Name,phone number,time)
  • Movie table (ID,Movie name,Movie time)
  • Ticket Order table (ID,Customer key,Movie key,Quantity of tickets ordered<=20)

Rest API Overview


automated testing http://127.0.0.1:8000/api/

  • Contain the list of all rest api created

Show all Avail Movies list


automated testing http://127.0.0.1:8000/api/avail-ticketlist/

  • Api will show the list of all the movie available to buy.

POST REST API to Buy tickets


automated testing http://127.0.0.1:8000/api/buy-ticket/

  • Post api to buy tickets not more than 20 tickets.
  • { "tickets_quantity": 5,"customer": 1,"movie_detail": 1}
  • Ask for customer id,movie id and number of tickets wants to buy.
  • Ticket order id will be automatically updated.
  • Ticket quantity can't be more than 20 (validation)

POST REST API Delete Ticket


automated testing http://127.0.0.1:8000/api/movie-delete/str:Mid/

  • Post api ask for movie id to detele is from database.

GET REST API to get buyed Movie details by ordered ticket ID


automated testing http://127.0.0.1:8000/api/movie-details/str:Mid/

  • Post api to get details of movie from ordered ticket's ID

GET REST API to view all view list under 8Hrs


automated testing http://127.0.0.1:8000/api/movie-range-view/

  • Will show the list of all movies which have diff of 8 hours between the ticket timing and current time.

POST REST API to Delete all view list under 8Hrs


automated testing http://127.0.0.1:8000/api/movie-range-delete/

  • Will DELETE the list of all movies which have diff of 8 hours between the ticket timing and current time.

GET REST API to get list of movie at the particular time


automated testing http://127.0.0.1:8000/api/avail-ticketlist/

  • Will return json reponse list of all the movie having same data time

GET REST API to get the list of all buyed tickets


automated testing http://127.0.0.1:8000/api/avail-ticketlist/

  • will return details of all the buyed tickes

POST REST API to Update movie time


automated testing http://127.0.0.1:8000/api/avail-ticketlist/

  • POST Rest Api to update movie name and time
  • {"movie_name": "Kedarnath","movie_time": "2020-08-31T12:00:00Z"}
  • Movie id will automatically update

GET REST API to get customer deatils by ticket ordered id


automated testing http://127.0.0.1:8000/api/avail-ticketlist/

  • to get the customer details from orderd ticket id

About

Movie theatre ticket booking backend system using django Rest API Framework. Tech used- Django, Django rest framework, SQLite

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages