mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 06:22:50 +08:00
parent
6992f9e113
commit
b909b34591
@ -24,7 +24,7 @@ the following.
|
|||||||
"DownstreamPathTemplate": "/api/posts/{postId}",
|
"DownstreamPathTemplate": "/api/posts/{postId}",
|
||||||
"DownstreamScheme": "https",
|
"DownstreamScheme": "https",
|
||||||
"DownstreamPort": 80,
|
"DownstreamPort": 80,
|
||||||
"DownstreamHost" "localhost",
|
"DownstreamHost":"localhost",
|
||||||
"UpstreamPathTemplate": "/posts/{postId}",
|
"UpstreamPathTemplate": "/posts/{postId}",
|
||||||
"UpstreamHttpMethod": [ "Put", "Delete" ]
|
"UpstreamHttpMethod": [ "Put", "Delete" ]
|
||||||
}
|
}
|
||||||
@ -46,7 +46,7 @@ You can also do a catch all type of ReRoute e.g.
|
|||||||
"DownstreamPathTemplate": "/api/{everything}",
|
"DownstreamPathTemplate": "/api/{everything}",
|
||||||
"DownstreamScheme": "https",
|
"DownstreamScheme": "https",
|
||||||
"DownstreamPort": 80,
|
"DownstreamPort": 80,
|
||||||
"DownstreamHost" "localhost",
|
"DownstreamHost":"localhost",
|
||||||
"UpstreamPathTemplate": "/{everything}",
|
"UpstreamPathTemplate": "/{everything}",
|
||||||
"UpstreamHttpMethod": [ "Get", "Post" ]
|
"UpstreamHttpMethod": [ "Get", "Post" ]
|
||||||
}
|
}
|
||||||
@ -75,7 +75,7 @@ Ocelot's routing also supports a catch all style routing where the user can spec
|
|||||||
"DownstreamPathTemplate": "/{url}",
|
"DownstreamPathTemplate": "/{url}",
|
||||||
"DownstreamScheme": "https",
|
"DownstreamScheme": "https",
|
||||||
"DownstreamPort": 80,
|
"DownstreamPort": 80,
|
||||||
"DownstreamHost" "localhost",
|
"DownstreamHost":"localhost",
|
||||||
"UpstreamPathTemplate": "/{url}",
|
"UpstreamPathTemplate": "/{url}",
|
||||||
"UpstreamHttpMethod": [ "Get" ]
|
"UpstreamHttpMethod": [ "Get" ]
|
||||||
}
|
}
|
||||||
@ -88,7 +88,7 @@ The catch all has a lower priority than any other ReRoute. If you also have the
|
|||||||
"DownstreamPathTemplate": "/",
|
"DownstreamPathTemplate": "/",
|
||||||
"DownstreamScheme": "https",
|
"DownstreamScheme": "https",
|
||||||
"DownstreamPort": 80,
|
"DownstreamPort": 80,
|
||||||
"DownstreamHost" "10.0.10.1",
|
"DownstreamHost":"10.0.10.1",
|
||||||
"UpstreamPathTemplate": "/",
|
"UpstreamPathTemplate": "/",
|
||||||
"UpstreamHttpMethod": [ "Get" ]
|
"UpstreamHttpMethod": [ "Get" ]
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user