我正在运行一个 Apache 前端,后面有几个微服务,其中一个微服务公开了一个 RPC API,该 API 要求使用POST
客户端应用程序传统上使用的位置发出请求GET
。也就是说,我如何使用 Apache (或其他任何东西) 来代理和转换GET
带有参数的请求,例如。
GET https://wherever.com/parcel/4809284 // <== id
进入
POST http://microservice/rpc/parcel/
使用 JSON 有效负载作为{ "id": "4809284" }
?