-
Notifications
You must be signed in to change notification settings - Fork 0
api gateway http
Le Gall, Benoit edited this page Aug 15, 2024
·
1 revision
Requests will be directly redirect to the Service set in the URI.
For example, given the configuration
gateway:
direct: true-
{host}/api/my-service/foo/barwill be proxied to{my-service-endpoint}/foo/bar -
{host}/api/my-service/my-endpointwill be proxied to{my-service-endpoint}/my-endpoint
Requests will be re-routed based on configured routes and context.
For example, given the configuration
gateway:
direct: false
routes:
my-service:
service-id: my-service-id
mapping:
- route: foo-bar
context: /foo/bar
- route: my-endpoint
some-remote-application:
uri: https://example.com
mapping:
- route: example-
{host}/api/foo-barwill be proxied to{service-endpoint}/foo/bar -
{host}/api/my-endpointwill be proxied to{service-endpoint}/my-endpoint -
{host}/api/examplewill be proxied tohttps://example.com