See https://github.com/Netflix/zuul.
mvn install
run MovieApplication.java
access http://localhost:9000/ghostbusters
Check out apigatewaypoc-zuul/src/main/resources/application.properties:
server.port=8080 - runs zuul on port 8080
zuul.routes.book.url=http://localhost:9000 - route to our rest service at port 9000
zuul.routes.book.path=/movies/** - tells that every call over /movies will be redirected to our rest service api on port
mvn install
run ApiGatewayApplication.java
access http://localhost:8080/movies/ghostbusters
* under the hood it is mapped to http://localhost:9000/ghostbusters