我創(chuàng)建了一個 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 關注
- 311 瀏覽
添加回答
舉報
0/150
提交
取消