Skip to content

Commit

Permalink
Merge pull request #31 from rcsim/fix/swagger
Browse files Browse the repository at this point in the history
fix: gateway GET method
  • Loading branch information
MkS10000 authored Mar 26, 2024
2 parents c13568c + fc99789 commit 2a89677
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public RouterFunction<ServerResponse> helloRoute() {
public RouterFunction<ServerResponse> cardRoute() {
return route("card_route")
.GET("/card/*", http("http://ms-payment:8084/card/*"))
.GET("/card", http("http://ms-payment:8084/card"))
.POST("/card", http("http://ms-payment:8084/card"))
.PUT("/card/*", http("http://ms-payment:8084/card/*"))
.DELETE("/card/*", http("http://ms-payment:8084/card/*"))
Expand All @@ -45,6 +46,7 @@ public RouterFunction<ServerResponse> paymentRoute() {
public RouterFunction<ServerResponse> cartRoute() {
return route("cart_route")
.GET("/shopping-cart/*", http("http://ms-shopping-cart:8083/shopping-cart/*"))
.GET("/shopping-cart", http("http://ms-shopping-cart:8083/shopping-cart"))
.POST("/shopping-cart", http("http://ms-shopping-cart:8083/shopping-cart"))
.PUT("/shopping-cart/*", http("http://ms-shopping-cart:8083/shopping-cart/*"))
.DELETE("/shopping-cart/*", http("http://ms-shopping-cart:8083/shopping-cart/*"))
Expand All @@ -55,6 +57,7 @@ public RouterFunction<ServerResponse> cartRoute() {
public RouterFunction<ServerResponse> itemRoute() {
return route("item_route")
.GET("/items/*", http("http://ms-item:8082/items/*"))
.GET("/items", http("http://ms-item:8082/items"))
.POST("/items", http("http://ms-item:8082/items"))
.PUT("/items/*", http("http://ms-item:8082/items/*"))
.DELETE("/items/*", http("http://ms-item:8082/items/*"))
Expand All @@ -64,6 +67,7 @@ public RouterFunction<ServerResponse> itemRoute() {
public RouterFunction<ServerResponse> userRoute() {
return route("item_route")
.GET("/users/*", http("http://ms-user-manager:8081/users/*"))
.GET("/users", http("http://ms-user-manager:8081/users"))
.POST("/users", http("http://ms-user-manager:8081/users"))
.PUT("/users/*", http("http://ms-user-manager:8081/users/*"))
.DELETE("/users/*", http("http://ms-user-manager:8081/users/*"))
Expand Down

0 comments on commit 2a89677

Please sign in to comment.