Tutorial by Examples

In ASP.NET Web API, a controller is a class that handles HTTP requests. The public methods of the controller are called action methods or simply actions. When the Web API framework receives a request, it routes the request to an action. To determine which action to invoke, the framework uses a rou...
The same URl for different http methods acts differently. Below is a table depicting the same. HTTP VERBURLDESCRIPTIONGET/api/studentsReturns all studentsGET/api/students/5Returns details of Student Id =5POST/api/studentsAdd a new studentPUT/api/students/5Update student with Id=5DELETE/api/students...

Page 1 of 1