ocelot.json中的post-json主体如何路由asp.net核心


{
"DownstreamPathTemplate": "/ProceedToBuy/PostWishList",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 8003
}
],
"UpstreamPathTemplate": "/AddToWishlist",
"UpstreamHttpMethod": [ "POST" ]
}

我想用这个路由请求发送json主体。

实际上你不必路由json,请求会自动路由到下游路径,我们可以直接用json向上游路径发出请求,它就会起作用!

最新更新