我在ASP.NET核心中有一个HTTP,如下所示。
[Route("{code}/bank")]
public IHttpActionResult Get([FromUri] string code, [FromBody] BankFilter bank)
{
return Ok();
}如何为BankFilter模型类在ocelot中配置下游和上游?
"DownstreamPathTemplate":"/{code}/bank“-如何接受银行过滤器模型类?
"UpstreamPathTemplate":"/{code}/bank“-如何接受银行过滤器模型类?
发布于 2022-06-20 10:46:26
你不需要配置任何东西。Ocelot会将请求体传递给下游服务。
https://stackoverflow.com/questions/70299463
复制相似问题