{ "Routes": [ { //Incoming "UpstreamPathTemplate": "/api/Account", "UpstreamHttpMethod": [ "POST" ], //Routed "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 5151 } ], "DownstreamPathTemplate": "/api/Account" }, { //Incoming "UpstreamPathTemplate": "/Contratos", "UpstreamHttpMethod": [ "GET", "POST" ], //Routed "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 5102 } ], "DownstreamPathTemplate": "/api/Contratos", "AuthenticationOptions": { //"AuthenticationProviderKey": "Bearer", "AllowedScopes": ["0kmmpshnyd.execute-api.us-east-2.amazonaws.com/"] // Ejemplo: "api.portfolio.manager.v1" } }, { //Incoming "UpstreamPathTemplate": "/Test", "UpstreamHttpMethod": [ "GET", "POST" ], //Routed "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 7041 } ], "DownstreamPathTemplate": "/ApiTest", //Auth "AuthenticationOptions": { //"AuthenticationProviderKey": "Bearer", "AllowedScopes": [] // Ejemplo: "api.portfolio.manager.v1" }, "RouteClaimsRequirement": { "permiso": "nuepDLYs7n8=" } }, { "UpstreamPathTemplate": "/Test/{id}", "UpstreamHttpMethod": [ "DELETE" ], "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 7041 } ], "DownstreamPathTemplate": "/ApiTest/{id}", // "RateLimitOptions": { "ClientWhiteList": [], "EnableRateLimiting": true, "Period": "5s", //s =sec, m = min, h = hour, d = day // Solo puede hacer request en x tiempo "PeriodTimespan": 10, // reintentar luego de x tiempo si entra en el error del period "Limit": 1 //Request que puede hacer 1 cliente } } ], "GlobalConfiguration": { "BaseUrl": "https://localhost:7041", "RateLimitOptions": { "QuotaExceededMessage": "Request excedidos", "HttpStatusCode": 909 //429 default } } }