【发布时间】:2017-08-14 01:52:12
【问题描述】:
我正在尝试处理没有可通过 Azure APIM 访问的招摇文档的后端 API(REST)。 我希望所有调用都定向到后端 API,而不是为所有资源手动创建 GET/PUT/POST。我的所有操作的入站策略如下 '
<policies>
<inbound>
<set-variable name="requestPath" value="@(context.Request.Url.Path)" />
<base/>
<set-backend-service base-url="https://*****/****/" />
<rewrite-uri template="@(context.Request.Url.Path)" copy-unmatched-params="true" />
</inbound>
<backend>
<base/>
</backend>
<outbound>
<base/>
</outbound>
</policies>
` 然而,当点击 APIM 时,我得到了
{
"statusCode": 404,
"message": "Resource not found"
}
任何帮助表示感谢谢谢
【问题讨论】:
标签: azure azure-api-management