A microservice architecture to manage a cinema. Each one of the microservices has the purpose of managing its respective domain class. The containers to run are specified in the docker-compose.yml file, it runs each microservice in a separate container.
It was created using spring gateway with the purpose of receving HTTP requests from the clients and routing them to the correct microservices. The routes are defined here.
Domain class: Pelicula. It represents a movie.
- GET/POST/PUT
/api/peliculas - GET/DELETE
/api/peliculas/{id}
Domain class: Proyeccion. It represents a movie proyection in a theater.
- GET/POST/PUT
/api/proyeccions - GET/DELETE
/api/proyeccions/{id} - GET
/api/proyeccions/hoyReturns a list ofProyeccionthat are active the day the request was sent.
Domain class: Sala. It represents a theater in wich Proyeccions can be played.
- GET/POST/PUT
/api/salas - GET/DELETE
/api/salas/{id}
Domain class: Butaca. It represents a seat in a Proyeccion.
- GET/POST/PUT
/api/butacas - GET
/api/butacas/{id}