mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 12:18:16 +08:00
#645 added a sample project using the administration api, tested locally and works as expected (#660)
This commit is contained in:
92
samples/AdministrationApi/README.md
Normal file
92
samples/AdministrationApi/README.md
Normal file
@ -0,0 +1,92 @@
|
||||
{
|
||||
"reRoutes": [
|
||||
{
|
||||
"downstreamPathTemplate": "/{everything}",
|
||||
"upstreamPathTemplate": "/templates/{everything}",
|
||||
"upstreamHttpMethod": [
|
||||
"GET"
|
||||
],
|
||||
"addHeadersToRequest": {},
|
||||
"upstreamHeaderTransform": {},
|
||||
"downstreamHeaderTransform": {},
|
||||
"addClaimsToRequest": {},
|
||||
"routeClaimsRequirement": {},
|
||||
"addQueriesToRequest": {},
|
||||
"requestIdKey": null,
|
||||
"fileCacheOptions": {
|
||||
"ttlSeconds": 0,
|
||||
"region": null
|
||||
},
|
||||
"reRouteIsCaseSensitive": false,
|
||||
"downstreamScheme": "http",
|
||||
"qoSOptions": {
|
||||
"exceptionsAllowedBeforeBreaking": 0,
|
||||
"durationOfBreak": 0,
|
||||
"timeoutValue": 0
|
||||
},
|
||||
"loadBalancerOptions": {
|
||||
"type": null,
|
||||
"key": null,
|
||||
"expiry": 0
|
||||
},
|
||||
"rateLimitOptions": {
|
||||
"clientWhitelist": [],
|
||||
"enableRateLimiting": false,
|
||||
"period": null,
|
||||
"periodTimespan": 0,
|
||||
"limit": 0
|
||||
},
|
||||
"authenticationOptions": {
|
||||
"authenticationProviderKey": null,
|
||||
"allowedScopes": []
|
||||
},
|
||||
"httpHandlerOptions": {
|
||||
"allowAutoRedirect": false,
|
||||
"useCookieContainer": false,
|
||||
"useTracing": false,
|
||||
"useProxy": true
|
||||
},
|
||||
"downstreamHostAndPorts": [
|
||||
{
|
||||
"host": "localhost",
|
||||
"port": 50689
|
||||
}
|
||||
],
|
||||
"upstreamHost": null,
|
||||
"key": null,
|
||||
"delegatingHandlers": [],
|
||||
"priority": 1,
|
||||
"timeout": 0,
|
||||
"dangerousAcceptAnyServerCertificateValidator": false
|
||||
}
|
||||
],
|
||||
"aggregates": [],
|
||||
"globalConfiguration": {
|
||||
"requestIdKey": "Request-Id",
|
||||
"rateLimitOptions": {
|
||||
"clientIdHeader": "ClientId",
|
||||
"quotaExceededMessage": null,
|
||||
"rateLimitCounterPrefix": "ocelot",
|
||||
"disableRateLimitHeaders": false,
|
||||
"httpStatusCode": 429
|
||||
},
|
||||
"qoSOptions": {
|
||||
"exceptionsAllowedBeforeBreaking": 0,
|
||||
"durationOfBreak": 0,
|
||||
"timeoutValue": 0
|
||||
},
|
||||
"baseUrl": "http://localhost:55580",
|
||||
"loadBalancerOptions": {
|
||||
"type": null,
|
||||
"key": null,
|
||||
"expiry": 0
|
||||
},
|
||||
"downstreamScheme": null,
|
||||
"httpHandlerOptions": {
|
||||
"allowAutoRedirect": false,
|
||||
"useCookieContainer": false,
|
||||
"useTracing": false,
|
||||
"useProxy": true
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user