如何在邮递员中通过ID获取数据

时间:2019-05-23 23:27:26

标签: asp.net-web-api asp.net-core postman

我有一个使用asp.net核心的方法,我想通过id获取数据,我认为我的方法是正确的,并且当我在邮递员中测试此方法时,我会出错

  

“值'aee66951-5cdc-4d73-4407-08d6df3a2be2'无效。”

file.cs:

[HttpGet("{id}")]
        // GET api/ApplicationUser/5
        public ActionResult<string> Get(int id)
        {
            return "value";
        }

和此网址: http://localhost:50228/api/ApplicationUser/aee66951-5cdc-4d73-4407-08d6df3a2be2

0 个答案:

没有答案
相关问题