mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-20 07:18:15 +08:00
Updated to netcoreapp3.1
* added basic sample * updated docs
This commit is contained in:
21
samples/OcelotBasic/ocelot.json
Normal file
21
samples/OcelotBasic/ocelot.json
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"ReRoutes": [
|
||||
{
|
||||
"DownstreamPathTemplate": "/todos/{id}",
|
||||
"DownstreamScheme": "https",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "jsonplaceholder.typicode.com",
|
||||
"Port": 443
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/posts/{id}",
|
||||
"UpstreamHttpMethod": [
|
||||
"Get"
|
||||
]
|
||||
}
|
||||
],
|
||||
"GlobalConfiguration": {
|
||||
"BaseUrl": "https://localhost:5000"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user