Sign inSign up

sanjeetkr/apigw-microservice

By sanjeetkr

•Updated over 3 years ago

Image
0

96

sanjeetkr/apigw-microservice repository overview

⁠zuul-api-gateway

API Gateway for all the microservices

App runs on port 9999

offers-microservice-spring-boot

Zuul API endpoint:  http://localhost:9999/offer/offers
Original endpoint: http://localhost:1001/api/v1/offers
Method: GET
Response:
{"samsung":"Samsung 10% Discount","adidas":"Adidas Shoe 70% Off","nikeshoe":"Nike Sports Shoe 50% off"}

shoes-microservice-spring-boot

Zuul API endpoint:  http://localhost:9999/shoe/shoes
Original endpoint: http://localhost:1002/api/v1/shoes
Method: GET
Response:
{"tommy":"Tommy Hilfiger Shoe","adidas":"Adidas Running Shoe","nikeshoe":"Nike Sports Shoe"}

wishlist-microservice-python

Zuul API endpoint:  http://localhost:9999/wishlist
Original endpoint: http://localhost:1003/
Method: GET
Response:
{"1": "Apple Iphone", "2": "MacBook", "3": "Your Fav Something else"}

cart-microservice-nodejs

Zuul API endpoint:  http://localhost:9999/cart
Original endpoint: http://localhost:1004/api/v1/
Method: GET
Response:
{"data":[{"itemNo":1,"item":"Nike Shoe"},{"itemNo":2,"item":"Tommy Hilfiger Shirt"},{"itemNo":3,"item":"Calvin Klien Trousers"}]}

FROM maven as build 
WORKDIR /app
COPY . .
RUN mvn install 

FROM openjdk:11.0.10-jre
WORKDIR /app
COPY --from=build /app/target/zuul-0.0.1-SNAPSHOT.jar /app
EXPOSE 9999
CMD ["java","-jar","zuul-0.0.1-SNAPSHOT.jar"]

Tag summary

Content type

Image

Digest

sha256:84b6f1914…

Size

146.8 MB

Last updated

over 3 years ago

docker pull sanjeetkr/apigw-microservice:v1.1