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: The GET method retrieves whatever information is identified by the requesting URI
  • PUT: The PUT method requests that the enclosed entity is to be stored under the supplied requesting URI
  • POST: The POST method requests that the enclosed entity is to be a subordinate of the resource identified by the requesting URI
  • DELETE: The DELETE 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.