Created
May 15, 2018 18:38
-
-
Save CESARDELATORRE/aaeb0ce4e2f3e6f97227f80b687fbcbb to your computer and use it in GitHub Desktop.
ApiGateway Ocelot json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ReRoutes": [ | |
{ | |
"DownstreamPathTemplate": "/api/{version}/{everything}", | |
"DownstreamScheme": "http", | |
"DownstreamHostAndPorts": [ | |
{ | |
"Host": "catalog.api", | |
"Port": 80 | |
} | |
], | |
"UpstreamPathTemplate": "/api/{version}/c/{everything}", | |
"UpstreamHttpMethod": [ "POST", "PUT", "GET" ] | |
}, | |
{ | |
"DownstreamPathTemplate": "/api/{version}/{everything}", | |
"DownstreamScheme": "http", | |
"DownstreamHostAndPorts": [ | |
{ | |
"Host": "basket.api", | |
"Port": 80 | |
} | |
], | |
"UpstreamPathTemplate": "/api/{version}/b/{everything}", | |
"UpstreamHttpMethod": [ "POST", "PUT", "GET" ], | |
"AuthenticationOptions": { | |
"AuthenticationProviderKey": "IdentityApiKey", | |
"AllowedScopes": [] | |
} | |
} | |
], | |
"GlobalConfiguration": { | |
"RequestIdKey": "OcRequestId", | |
"AdministrationPath": "/administration" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment