TECH STACK Python, Django(Framework), SQLite database
- 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)
- Contain the list of all rest api created
http://127.0.0.1:8000/api/avail-ticketlist/
- Api will show the list of all the movie available to buy.
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)
http://127.0.0.1:8000/api/movie-delete/str:Mid/
- Post api ask for movie id to detele is from database.
http://127.0.0.1:8000/api/movie-details/str:Mid/
- Post api to get details of movie from ordered ticket's ID
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.
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.
http://127.0.0.1:8000/api/avail-ticketlist/
- Will return json reponse list of all the movie having same data time
http://127.0.0.1:8000/api/avail-ticketlist/
- will return details of all the buyed tickes
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
http://127.0.0.1:8000/api/avail-ticketlist/
- to get the customer details from orderd ticket id