【发布时间】:2022-03-29 20:58:45
【问题描述】:
我使用 Microsoft Azure 创建了简单的 Web API。当我通过链接http://taskswebapp.azurewebsites.net/api/tasks/ 进行简单调用时,它会正确返回 JSON 字符串。 比我使用以下设置创建 Azure API 管理:
- Web 服务 URL:http://taskswebapp.azurewebsites.net/
- Web API URL 后缀:api
还有新的操作:
- HTTP 动词*:GET
- 网址模板:/tasks
当我尝试在 API Management Developers Portal 上进行此调用时,它会响应 404。
Ocp-Apim-Trace-位置: https://apimgmtstep0m850qbbqfy1r.blob.core.windows.net/apiinspectorcontainer/N8BZ_bvg_tqqEKKM3-9CFg2-26?sv=2014-02-14&sr=b&sig=LOoq%2Bpp%2B8TMgiAzir%2BqxrZv4WsVN6LeVg1bR%2Fjjh0ag%3D&se=2015-10-19T11%3A47%3A22Z&sp=r&traceId=1b3f1ff48b5d400799b497337e299213 日期:2015 年 10 月 18 日星期日 11:47:22 GMT ARRAffinity=47ee33511877c67ac64671db4dc13c4d3d30ad6daa9c461e9a39036fc4112292;路径=/;域=taskswebapp.azurewebsites.net X-Powered-By: ASP.NET Content-Length: 103 Content-Type: text/html
您要查找的资源已被删除,有它的名字 已更改,或暂时不可用。 块引用
【问题讨论】:
标签: rest azure asp.net-web-api