Update routing.rst (#193)

lack of ":"
This commit is contained in:
lousaibiao 2018-01-10 16:14:14 +08:00 committed by Tom Pallister
parent 6992f9e113
commit b909b34591

View File

@ -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" ]
} }