我创建了一个 PublicController.cs,它将返回代理列表。然后我构建并运行项目并打开 Postman 更改模式以获取并调用http://localhost:50159/api/public/Agents我得到的消息是{ "Message": "No HTTP resource was found that matches the request URI 'http://localhost:50159/api/public/Agents'.", "MessageDetail": "No action was found on the controller 'Public' that matches the request."}有什么我想念的吗? [HttpGet] public IHttpActionResult Agents(string key, string diseaseId) { GuardKey(key); var result = AgentsDataService.GetAgents(); return Json(result); }
- 1 回答
- 0 关注
- 217 浏览
添加回答
举报
0/150
提交
取消