Reservations API
Ticket Filtering API View
GET
https://younghoonjean.com/api/tickets/filter/
영화 예매 필터링 API입니다. 각 조건에 따라 동적으로 리스트가 변동합니다.
Query Parameters
Name | Type | Description |
---|---|---|
movie | string | input Movie title |
location | string | input location of Theater |
sub_location | string | input sub location of Theater |
time | string | YYYY-MM-DD 형태의 date |
Headers
Name | Type | Description |
---|---|---|
Authentication | string | token <token key> |
Ticket Seat Reservation View
GET
https://younghoonjean.com/api/tickets/seats/<int:pk>/
auditorium pk 은 상영관의 pk 입니다. Response로 해당 상영관의 좌석 예매 현황을 나타내어줍니다.
Path Parameters
Name | Type | Description |
---|---|---|
Screen PK | string | input Screening instance pk want to make a reservation |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Token <token key> |
Make a Reservation View
POST
https://younhoonjean.com/api/tickets/reservations/
입력한 상영 및 좌석 정보로 예약을 생성해줍니다.
Headers
Name | Type | Description |
---|---|---|
Content-Type | string | application/json |
Authorization | string | Token <token key> |
Request Body
Name | Type | Description |
---|---|---|
screen | string | input Screening instance pk |
seats | array | input seat pk you want to make a reservation |
Movie Select API View For Reservation in iOS(Mobile)
GET
https://younghoonjean.com/api/tickets/m/movies/
현재 극장에 등록되어 있는 모든 영화 리스트를 보여줍니다.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Token <token key> |
Ticket Filtering API View For iOS(Mobile)
GET
https://younghoonjean.com/api/tickets/m/filter/<int:pk>/
선택한 영화의 예약 가능정보들을 보여줍니다.
Path Parameters
Name | Type | Description |
---|---|---|
movie pk | string | input movie instance pk |
Query Parameters
Name | Type | Description |
---|---|---|
location | string | input location for filtering |
time | string | input YYYY-MM-DD form date |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Token <token key> |
Last updated