In this article, we will see HTTP verb attributes on API method. This is part four of the article series. Before reading this article, I would recommend reading the following previous part.
Normally method invoked is picked based upon the verb of the incoming HTTP Request like Get, Post, Put and Delete. But consider a scenario where you don’t want to name your methods with the convention, you can add attributes to your methods. You can name method whatever you would like to and set specific attributes like,
Routing engine still picks the controller and method.
Let’s see the same step by step:
Run your application and follow below steps:

GET
GET By ID
POST
PUT
DELETE