From ea4eaa93a1d837622291b8ad018c6094b12e3ebf Mon Sep 17 00:00:00 2001 From: SebastienBtr Date: Sat, 14 Nov 2020 17:38:27 +0100 Subject: [PATCH] fix api gateway --- services/api-gateway/settings/article.json | 5 ++++ services/api-gateway/settings/cart.json | 5 ++++ .../api-gateway/settings/documentation.json | 23 +++++++++++++++++++ 3 files changed, 33 insertions(+) diff --git a/services/api-gateway/settings/article.json b/services/api-gateway/settings/article.json index f8b1ea8..a63b462 100644 --- a/services/api-gateway/settings/article.json +++ b/services/api-gateway/settings/article.json @@ -7,30 +7,35 @@ "endpoint": "/articles", "method": "GET", "url_pattern": "/articles", + "encoding": "no-op", "extra_config": {} }, { "endpoint": "/articles", "method": "POST", "url_pattern": "/articles", + "encoding": "no-op", "extra_config": {} }, { "endpoint": "/articles/{id}", "method": "GET", "url_pattern": "/articles/{id}", + "encoding": "no-op", "extra_config": {} }, { "endpoint": "/articles/{id}", "method": "PUT", "url_pattern": "/articles/{id}", + "encoding": "no-op", "extra_config": {} }, { "endpoint": "/articles/{id}", "method": "DELETE", "url_pattern": "/articles/{id}", + "encoding": "no-op", "extra_config": {} } ] diff --git a/services/api-gateway/settings/cart.json b/services/api-gateway/settings/cart.json index 5654ac2..e75b56a 100644 --- a/services/api-gateway/settings/cart.json +++ b/services/api-gateway/settings/cart.json @@ -7,30 +7,35 @@ "endpoint": "/cart/items", "method": "GET", "url_pattern": "/cart/items", + "encoding": "no-op", "extra_config": {} }, { "endpoint": "/cart/items", "method": "POST", "url_pattern": "/cart/items", + "encoding": "no-op", "extra_config": {} }, { "endpoint": "/cart/items/checkout", "method": "PUT", "url_pattern": "/cart/items/checkout", + "encoding": "no-op", "extra_config": {} }, { "endpoint": "/cart/items/quantity/{id}", "method": "PUT", "url_pattern": "/cart/items/quantity/{id}", + "encoding": "no-op", "extra_config": {} }, { "endpoint": "/cart/items/{id}", "method": "DELETE", "url_pattern": "/cart/items/{id}", + "encoding": "no-op", "extra_config": {} } ] diff --git a/services/api-gateway/settings/documentation.json b/services/api-gateway/settings/documentation.json index 169fa66..4075bad 100644 --- a/services/api-gateway/settings/documentation.json +++ b/services/api-gateway/settings/documentation.json @@ -7,54 +7,77 @@ "endpoint": "/documentation", "method": "GET", "url_pattern": "/documentation", + "encoding": "no-op", "extra_config": {} }, { "endpoint": "/article-swagger.json", "method": "GET", "url_pattern": "/article-swagger.json", + "encoding": "no-op", "extra_config": {} }, { "endpoint": "/cart-swagger.json", "method": "GET", "url_pattern": "/cart-swagger.json", + "encoding": "no-op", + "extra_config": {} + }, + { + "endpoint": "/user-swagger.json", + "method": "GET", + "url_pattern": "/user-swagger.json", + "encoding": "no-op", + "extra_config": {} + }, + { + "endpoint": "/auth-swagger.json", + "method": "GET", + "url_pattern": "/auth-swagger.json", + "encoding": "no-op", "extra_config": {} }, { "endpoint": "/swagger-ui.css", "method": "GET", "url_pattern": "/documentation/swagger-ui.css", + "encoding": "no-op", "extra_config": {} }, { "endpoint": "/swagger-ui-bundle.js", "method": "GET", "url_pattern": "/documentation/swagger-ui-bundle.js", + "encoding": "no-op", "extra_config": {} }, { "endpoint": "/swagger-ui-standalone-preset.js", "method": "GET", "url_pattern": "/documentation/swagger-ui-standalone-preset.js", + "encoding": "no-op", "extra_config": {} }, { "endpoint": "/swagger-ui-init.js", "method": "GET", "url_pattern": "/documentation/swagger-ui-init.js", + "encoding": "no-op", "extra_config": {} }, { "endpoint": "/favicon-32x32.png", "method": "GET", "url_pattern": "/documentation/favicon-32x32.png", + "encoding": "no-op", "extra_config": {} }, { "endpoint": "/favicon-16x16.png", "method": "GET", "url_pattern": "/documentation/favicon-16x16.png", + "encoding": "no-op", "extra_config": {} } ]