将后端服务的GET请求转换为POST请求的APIM策略 [英] APIM Policy to convert and incoming GET request to a POST request for my back end service
问题描述
注意:请在下面查看我自己的答案
NOTE: SEE MY OWN ANSWER BELOW
我一直在浏览细长的文档达数小时之久.我需要的是这样:
I have been looking through the slim documentation for hours. What I need is this:
我有一个来自系统的传入GET请求,该系统只能发送GET请求.我的后端服务需要POST请求.
有人可以就我应该使用的APIM政策或政策组合为我指明正确的方向.
Can someone point me in the right direction in regards to what APIM policy I should be using or a combination of policies.
我正在使用策略参考,但仍然无法提出一个体面的解决方案: https://msdn.microsoft.com/en-us/library/azure/dn894081.aspx
I am using the policy reference but still can't come up with a decent solution: https://msdn.microsoft.com/en-us/library/azure/dn894081.aspx
推荐答案
您可以使用标记更改请求的HTTP方法. 请参考 https://msdn.microsoft.com/zh-我们/library/azure/dn894085.aspx#SetRequestMethod 了解更多信息
You can use the tag to change the HTTP method for a request. Please refer to https://msdn.microsoft.com/en-us/library/azure/dn894085.aspx#SetRequestMethod for more info
这篇关于将后端服务的GET请求转换为POST请求的APIM策略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!