Booking
#
Manage movie bookings#
Book tickets for a movieUsed 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 responseCondition: Movie exists and ticket amount is not above available tickets
Code: 200
Content example
#
Error response#
Movie not foundCondition: Movie id was not found
Code: 404
Content example
#
Movie sold outCondition: There are not enough available tickets for your booking
Code: 400
Content example
#
Cancel reservation for a movieUsed to cancel a reservation
URL: /api/v1/cinema/booking/{movieId}
Method: DELETE
Auth required: Yes
Feature required: CinemaFeature
#
Success responseCondition: Movie exists and ticket amount is not above available tickets
Code: 200
Content example
#
Error response#
Movie not foundCondition: Movie id was not found
Code: 404
Content example