Virtual movie theater realised by REST service.
Endpoints:
- /seats endpoint that handles GET requests and returns the information about the movie theatre in JSON format.
- /purchase endpoint that handles POST requests and marks a booked ticket as purchased. A request should contain the following data: row โ the row number; column โ the column number.
- /return endpoint, which handles POST requests and allow customers to refund their tickets.
- /stats endpoint that will handle POST requests with URL parameters. If the URL parameters contain a password key with a super_secret value, return the movie theatre statistics.