Python Classroom notes 18/May/2025

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
  • 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
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%