ABP WebApi request type

Api corresponding request types are divided into the following four methods:

1.POST

2.PUT

3.DELETE

4.GET

General abp request types are named according to the interface definition, Create - POST, Delete - DELETE, Update - PUT, Get - GET,

Of course, we can also define an interface yourself what type of request, this package can be introduced Microsoft.AspNetCore.Mvc,

After the introduction of the package, is added on top of the interface [HttpPost] or [HttpGet] or [HttpDelete] or [HTTP PUT],

Of course, if you want to an interface corresponding to two different request types, you add [interface above AcceptVerbs ( "the POST", "the PUT")] to.

Guess you like

Origin www.cnblogs.com/liguix/p/11302185.html