Chapter 8. Creating and Hosting Our First ASP.NET Web API

In this chapter we will cover:

  • Creating our first ASP.NET web API
  • Implementing a CRUD ASP.NET web API
  • Setting up a self-hosted ASP.NET web API

Introduction

.NET 4.5 introduces the capability to create ASP.NET web APIs. This is brought to us by ASP.NET MVC4. Basically, the ASP.NET web API is a framework that enables developers to easily build HTTP services. This makes the framework a good fit to build RESTful applications over .NET 4.5.

An important point is that, since these services are being exposed over HTTP, we can integrate them with almost any client device and technology in the market, which makes them extremely useful.

ASP.NET web APIs provide support for:

  • A modern HTTP programming model, ...

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.