Booking
Manage movie bookings#
Book tickets for a movie#
Used to book tickets for a specific movie
URL: /api/v1/cinema/booking
Method: POST
Auth required: Yes
Feature required: CinemaFeature
Data constraints
Data example
Success response#
Condition: Movie exists and ticket amount is not above available tickets
Code: 200
Content example
Error response#
Movie not found#
Condition: Movie id was not found
Code: 404
Content example
Movie sold out#
Condition: There are not enough available tickets for your booking
Code: 400
Content example
Cancel reservation for a movie#
Used to cancel a reservation
URL: /api/v1/cinema/booking/{movieId}
Method: DELETE
Auth required: Yes
Feature required: CinemaFeature
Success response#
Condition: Movie exists and ticket amount is not above available tickets
Code: 200
Content example
Error response#
Movie not found#
Condition: Movie id was not found
Code: 404
Content example