Lets Build a Microservice Application
- Options:
- Ecommerce
- Food delivery
- Movie Booking
- Note: We will be trying to simulate Movie Booking Application with APIs
Movie Booking Application
-
Search and find out what are components in movie booking
- Identity Service
- User Profile Service
- Movie Service
- ShowTime Service
- Theatre Service
- Booking Service
- Payment Service
- Notification Service
- OffersService
-
Let trim the development to three services
- Movie Service
- ShowTime Service
- Theatre Service
Movie Service
- Endpoints
- Get /movies – List all movies
- Get /movies/{id} – Get a Movie by id
- POST /movies -> Create a new movie
- PUT /movies/{id} -> Update movie
- DELETE /movies/{id} -> Delete
- Refer Here for movies service.
Theatre Service
- 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
- Theatre
- id
- name
- location
- Refer Here for Theatre and movie service
