Asp.Net MVC4 + Web API Controller Delete request >> 404 error

后端 未结 4 1869
一向
一向 2021-01-04 02:58

I have a VS2012 MVC4 solution where I test Web API Controllers.

I successfully tested the GET, POST, PUT but the DELETE still got me an http 404 error. When I set a

4条回答
  •  日久生厌
    2021-01-04 03:49

    HTTP DELETE does not have a body. You need to pass the id as a query string parameter.

提交回复
热议问题