This document contains the API endpoints for our cinema that applies for:
- booking a ticket,
- handle reviews,
- information about movies
- handle accounts
GET /api/screenings
Returns a list of movie screenings, including information about the movie, date, time, language and theater.
GET /api/reviews/:id
Returns the reviews for a specific movie, specified by its id.
GET /api/upcoming-screenings/:id
Returns a list of upcoming screenings for a specific movie, specified by its id.
GET /api/movies/:id/booking/:displayDate
Returns the available seats for a specific movie screening, specified by its date.
POST /api/movies/:id/sendReview
Allows a user to post a review for a specific movie, specified by its id.
POST /api/movies/:id/payment
Allows a user to make a payment for a specific movie screening, specified by its id.
POST /api/login
Allows a user to log in to the application.
POST /api/createUser
Allows a user to create an account for the application.
GET /
Homepage that shows movies available
GET /movies/:id
Information about movie that match id
GET /movies/:id/booking
Book movie that match id
GET /about
Static page about our cinema
GET /contact
Static page with contact information
GET /openinghours
Static page with opening hours