Express Gateway receive API requests on apiEndpoints, process them and then proxy them to downstream microservices. The serviceEndpoints section specifies the URLs of these proxied microservices.
serviceEndpoints: # downstream microservices cats: # name, used as a reference in pipeline url: "http://cats1.example.com" dogs: # name, used as a reference in pipeline urls: # multiple urls can be used with load balancing - "http://dogs1.example.com" - "http://dogs2.example.com"
||the protocol and hostname to proxy requests to|
||an array of URLs, used with load balancing|
||options to be used when calling the proxy policy with this service endpoint|
serviceEndpoint must have either a
url property with a single string or a
urls property with an array of strings.