An example app using spring cloud and mongo-db to show how one could start to build an online flight booking API.
To get the solution running, the different microservices need to be fired up in this order:
- Eureka Server
- Zuul Server
- Config Server
- Cost service
- Flight service
- Booking service
- Eureka dashboard: http://localhost:8761/
- Hystrix stream: http://localhost:8201/hystrix.stream
- Hystrix turbine dashboard: http://localhost:9090/hystrix/monitor?stream=http://localhost:9090/turbine.stream
POST http://localhost:8201/flights/
{
"id":"1",
"flightDate":"2019-01-01",
"origin":"JOHANNESBURG",
"destination":"CAPE_TOWN",
"seatsAvailable":"20"
}