如何post json body in ocelot.json route asp.net core

How post json body in ocelot.json route asp.net core

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

我想用这个路由请求发送 json 正文。

其实你不需要路由json请求会自动路由到下游路径,我们可以直接用json请求到上游路径就可以了!