Maybe I cannot find manual.
I found experimentally that POST is default acceptance verb if a method does not follow webapi naming convension ( Post~~
, Get~~
) and does not describe verb attribute like [HttpPost]
in webapi.
is that right? is there any description about this?
That's correct. If the method name doesn't map (through attribute, or convention) to a supported HTTP verb, then the default is POST.
Refer to the answer there
Is there a default verb applied to a Web API ApiController method?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.