Skip to content

Latest commit

 

History

History
102 lines (81 loc) · 1.62 KB

API-Document.md

File metadata and controls

102 lines (81 loc) · 1.62 KB

Auth API

CinemaHall API

Add cinema cinemaHall

POST
/cinemaHall ? name = <cinemaHallName> & seatingCapacity = <Integer>

Update seating seatingCapacity of cinemaHall

PUT
/cinemaHall/seatingCapacity ? Id = <cinemaHallId> & seatingCapacity = <Integer>

update CinemaHall Name

PUT
/cinemaHall/name ? Id = <cinemaHallId> & name = <cinemaHallName>

Movie API

addNewMovie

POST
/movie ?  name = <movieName> & durationInMinutes = <Integer>

##MovieShowController API

add New Movie Show

POST
/movieShow ? movieId = <movieId> & hallId = <cinemaHallId> & startTime = <TimeInMilliSeconds>

Payment Status Controller

POST
/paymentStatus ? transactionID = <transactionID> & paymentStatus = <"SUCCESS"/"FAIL"/"INPROGRESS">

Seat Booking Controller API

openSeatsForBooking

POST
/seatBooking/open ? showID = <Id>

UnAuth API

Cinema Hall Viewer

getAllCinemaHall - get all cinema hall details

GET
/cinemaHallViewer

MovieShowViewer

getAllMovieShows - get all movies shows list

GET
/movieShow

MovieViewer

getAllMovie - get all movies list

GET
/movieViewer

SeatBookingHandler

getSeatStatusForShowById - get seats free / occupied status

GET
/seatBookingHandler/seatStatus ? showID = <Id>
requestBooking - request seats for booking

POST

/seatBookingHandler/request
{
    movieShowID : <ID>,
    seat : [seatsNOs]
}
Returns - booking ID

bookingStatus - check booking status

GET
/seatBookingHandler/bookingStatus ? bookingId = <ID>
returns "SUCCESS"/"FAIL"/"INPROGRESS"