Implementing a CRUD ASP.NET web API
In this recipe, we will see how to create an ASP.NET web API that supports CRUD operations, which stands for Create Read Update and Delete . These map to the standard database operations that correspond to the following HTTP verbs:
GET
: TheGET
method retrieves whatever information is identified by the requesting URIPUT
: ThePUT
method requests that the enclosed entity is to be stored under the supplied requesting URIPOST
: ThePOST
method requests that the enclosed entity is to be a subordinate of the resource identified by the requesting URIDELETE
: TheDELETE
method requests that the resource identified by the requesting URI should be deleted
In this recipe, we will see how to implement these CRUD features on ...
Get Microsoft .NET Framework 4.5 Quickstart Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.