Azure API管理 - 返回JSON响应而无需发送到后端服务
我正在尝试在Azure API管理中创建一个API,我只想设置一个简单的API,该API返回具有200个状态的JSON响应,而无需将其发送到任何后端服务。 我通过嘲笑找到了一种方法,但想知道是否有更好的方法。
谢谢,
I am trying to create an API in Azure API Management where I just want to set up a simple API that returns a JSON response with a 200 status without sending it to any backend services.
I found a way to do this through mocking but wondering if there is a better approach to this.
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过在入站处理中添加策略来弄清楚这一点:
I have figured this out by adding the policy in Inbound Processing: