我已在 Azure API 管理中添加了我的 REST api 服务.我已按照此链接中给出的所有步骤 Azure APIM.API 在本地运行良好.通过发布的 URL 访问时,它也可以工作.
I have added my REST api service in Azure API Management. I have followed all the steps given in this link Azure APIM. API works fine in local. It also works when accessed through published URL.
我还添加了 OAuth2.0 安全性,并且可以通过.
I have added OAuth2.0 security as well which is passing through fine.
我的问题是当我尝试通过 APIM 发布的 URL 访问操作时,服务给出的响应 200 内容为空.
My issue is When i try to access the operation through APIM published URL, the service is giving response 200 with empty content.
有人可以帮忙吗.
推荐答案当人们无意中删除了顶级策略并删除了适用于所有api上的所有操作的主要转发请求策略时,就会出现此问题.只需单击添加策略"按钮即可在顶级范围内重新添加默认策略.
This problem occurs when people unintentionally delete the top level policy and remove the main forward-request policy that applies to all operations on all apis. Simply click the Add policy button to re-add the default policy at the top level scope.
更多推荐
从 azure APIM 调用时,REST API 服务返回空响应正文,状态码为 200
发布评论