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?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With