Theatre Service
- Theatre
- id
- name
- location
- Refer Here for Theatre and movie service
- Lets add screens
- Screen
- id: int
- theatre_id: int
- name:
- capacity: int
- Screen
- Endpoints
- Get /theatres – List all theatre
- Get /theatres/{id} – Get a theatre by id
- POST /theatres -> Create a new theatre
- PUT /theatres/{id} -> Update theatre
- DELETE /theatres/{id} -> Delete theatre
- GET /theatres/{id}/screens -> Get screens for a theatre
- POST /theatres/{id}/screens -> Creates screens for a theatre
- Refer Here for the changes done to include screen
Show time Service – Exercise
-
Structure
- id: int
- movie_id: int
- screen_id: int
- start_time: datetime
- end_time: datetime
-
Endpoints:
- GET /showtimes
- GET /showtimes/{id}
- POST /showtimes/
- GET /showtimes/screen/{screen_id}: call rest api of screen service to get screen id and filter showtimes by screen id
- GET/showtimes/movie/{movie_id}: call rest api of movie service to get movie id and filter showtimes by movie id
