You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
146 lines
3.5 KiB
146 lines
3.5 KiB
{
|
|
"GlobalConfiguration": {
|
|
"BaseUrl": "https://localhost:5003"
|
|
},
|
|
"Routes": [
|
|
{
|
|
"UpstreamPathTemplate": "/gateway/cats",
|
|
"UpstreamHttpMethod": [ "Get" ],
|
|
"DownstreamPathTemplate": "/api/cats",
|
|
"DownstreamScheme": "https",
|
|
"DownstreamHostAndPorts": [
|
|
{
|
|
"Host": "localhost",
|
|
"Port": 7229
|
|
}
|
|
],
|
|
"RateLimitOptions": {
|
|
"EnableRateLimiting": true,
|
|
"Period": "1s",
|
|
"PeriodTimespan": 1,
|
|
"Limit": 1
|
|
}
|
|
},
|
|
{
|
|
"UpstreamPathTemplate": "/gateway/cats",
|
|
"UpstreamHttpMethod": [ "Post" ],
|
|
"DownstreamPathTemplate": "/api/cats",
|
|
"DownstreamScheme": "https",
|
|
"DownstreamHostAndPorts": [
|
|
{
|
|
"Host": "localhost",
|
|
"Port": 7229
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"UpstreamPathTemplate": "/gateway/cats/{id}",
|
|
"UpstreamHttpMethod": [ "Get", "Put", "Delete" ],
|
|
"DownstreamPathTemplate": "/api/cats/{id}",
|
|
"DownstreamScheme": "https",
|
|
"DownstreamHostAndPorts": [
|
|
{
|
|
"Host": "localhost",
|
|
"Port": 7229
|
|
}
|
|
]
|
|
},
|
|
|
|
{
|
|
"UpstreamPathTemplate": "/gateway/bars",
|
|
"UpstreamHttpMethod": [ "Get" ],
|
|
"DownstreamPathTemplate": "/api/bars",
|
|
"DownstreamScheme": "https",
|
|
"DownstreamHostAndPorts": [
|
|
{
|
|
"Host": "localhost",
|
|
"Port": 7229
|
|
}
|
|
],
|
|
"RateLimitOptions": {
|
|
"EnableRateLimiting": true,
|
|
"Period": "1s",
|
|
"PeriodTimespan": 1,
|
|
"Limit": 1
|
|
}
|
|
},
|
|
{
|
|
"UpstreamPathTemplate": "/gateway/bars",
|
|
"UpstreamHttpMethod": [ "Post" ],
|
|
"DownstreamPathTemplate": "/api/bars",
|
|
"DownstreamScheme": "https",
|
|
"DownstreamHostAndPorts": [
|
|
{
|
|
"Host": "localhost",
|
|
"Port": 7229
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"UpstreamPathTemplate": "/gateway/bars/{id}",
|
|
"UpstreamHttpMethod": [ "Get", "Put", "Delete" ],
|
|
"DownstreamPathTemplate": "/api/bars/{id}",
|
|
"DownstreamScheme": "https",
|
|
"DownstreamHostAndPorts": [
|
|
{
|
|
"Host": "localhost",
|
|
"Port": 7229
|
|
}
|
|
]
|
|
},
|
|
|
|
{
|
|
"UpstreamPathTemplate": "/gateway/customers",
|
|
"UpstreamHttpMethod": [ "Get" ],
|
|
"DownstreamPathTemplate": "/api/customers",
|
|
"DownstreamScheme": "https",
|
|
"DownstreamHostAndPorts": [
|
|
{
|
|
"Host": "localhost",
|
|
"Port": 7229
|
|
}
|
|
],
|
|
"FileCacheOptions": {
|
|
"TtlSeconds": 10
|
|
}
|
|
},
|
|
{
|
|
"UpstreamPathTemplate": "/gateway/customers",
|
|
"UpstreamHttpMethod": [ "Post" ],
|
|
"DownstreamPathTemplate": "/api/customers",
|
|
"DownstreamScheme": "https",
|
|
"DownstreamHostAndPorts": [
|
|
{
|
|
"Host": "localhost",
|
|
"Port": 7229
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"UpstreamPathTemplate": "/gateway/customers/{id}",
|
|
"UpstreamHttpMethod": [ "Get", "Put", "Delete" ],
|
|
"DownstreamPathTemplate": "/api/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
|
|
}
|
|
]
|
|
} |