{ "GlobalConfiguration": { "BaseUrl": "https://localhost:5003" }, "Routes": [ { "UpstreamPathTemplate": "/gateway/v1/cats", "UpstreamHttpMethod": [ "Get" ], "DownstreamPathTemplate": "/api/v1/cats", "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 7229 } ], "RateLimitOptions": { "EnableRateLimiting": true, "Period": "1s", "PeriodTimespan": 1, "Limit": 1 } }, { "UpstreamPathTemplate": "/gateway/cats", "UpstreamHttpMethod": [ "Get" ], "DownstreamPathTemplate": "/api/v2/cats", "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 7229 } ] }, { "UpstreamPathTemplate": "/gateway/cats", "UpstreamHttpMethod": [ "Post" ], "DownstreamPathTemplate": "/api/v1/cats", "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 7229 } ] }, { "UpstreamPathTemplate": "/gateway/cats/{id}", "UpstreamHttpMethod": [ "Get", "Put", "Delete" ], "DownstreamPathTemplate": "/api/v1/cats/{id}", "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 7229 } ] }, { "UpstreamPathTemplate": "/gateway/bars", "UpstreamHttpMethod": [ "Get" ], "DownstreamPathTemplate": "/api/v1/bars", "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 7229 } ], "RateLimitOptions": { "EnableRateLimiting": true, "Period": "1s", "PeriodTimespan": 1, "Limit": 1 } }, { "UpstreamPathTemplate": "/gateway/bars", "UpstreamHttpMethod": [ "Post" ], "DownstreamPathTemplate": "/api/v1/bars", "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 7229 } ] }, { "UpstreamPathTemplate": "/gateway/bars/{id}", "UpstreamHttpMethod": [ "Get", "Put", "Delete" ], "DownstreamPathTemplate": "/api/v1/bars/{id}", "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 7229 } ] }, { "UpstreamPathTemplate": "/gateway/customers", "UpstreamHttpMethod": [ "Get" ], "DownstreamPathTemplate": "/api/v1/customers", "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 7229 } ], "FileCacheOptions": { "TtlSeconds": 10 } }, { "UpstreamPathTemplate": "/gateway/customers", "UpstreamHttpMethod": [ "Post" ], "DownstreamPathTemplate": "/api/v1/customers", "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 7229 } ] }, { "UpstreamPathTemplate": "/gateway/customers/{id}", "UpstreamHttpMethod": [ "Get", "Put", "Delete" ], "DownstreamPathTemplate": "/api/v1/customers/{id}", "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 7229 } ] }, { "UpstreamPathTemplate": "/gateway/ws", "UpstreamHttpMethod": [ "Get", "Post" ], "DownstreamPathTemplate": "/ws", "DownstreamScheme": "wss", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 7229 } ], "UseWebSockets": true } ] }