Online Movie Ticket Booking
An online Movie Ticket Booking System, where a User can select a city, then a movie of their choice, and be able to find theaters playing the movie and book one or more seats in that theater using this system. Price of all the seats are same.
Assumptions made -
- All the theatres have only a single screen, multiple screens per theatre is not considered.
- While booking seats, though an entry for user is made in the booking table, but the user is hardcoded.
APIs -
- /showAllCities - Gives a list of all the cities in the DB
- /showAllTheatres - Gives a list of all the cities in the DB
- /showAllMovies - Gives a list of all the movies in the city
- /showTheatres - Takes movie and city as input parameters and outputs theatres in the particular city showing the movie
- /showMovies - Takes city as input parameter and outputs movies showing in the particular city
- /bookSeats - Takes city, movie, theatre and no of seats as input, creates a booking for the user and returns booking id
Simplified System Architecture -