14.01.2015 Views

Eric lippert - Amazon Web Services

Eric lippert - Amazon Web Services

Eric lippert - Amazon Web Services

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ASP.NET WEB API<br />

Head First Into ASP.NET<br />

<strong>Web</strong> API - Media Formatters<br />

Suprotim Agarwal introduces ASP.NET <strong>Web</strong> API briefly before walking us through<br />

what are Media Formatters in <strong>Web</strong> API and how to build one for ourselves<br />

ASP.NET <strong>Web</strong> API<br />

is a framework<br />

that makes it easy<br />

to build HTTP<br />

services on top of<br />

the .NET<br />

framework<br />

Microsoft introduced ASP.NET <strong>Web</strong> API as<br />

a lightweight HTTP based web services<br />

framework with the launch of Visual<br />

Studio 2012 and .NET Framework 4.5.<br />

Prior to <strong>Web</strong> API, communicating over<br />

HTTP in Microsoft’s dev stack was a<br />

colorful mess comprising of WS-* stack.<br />

There were other third party libraries<br />

that were built ground up on .NET, like<br />

ServiceStack.<br />

With <strong>Web</strong> API, Microsoft took a clean<br />

break and built a framework that stuck to<br />

the basics of HTTP without introducing<br />

any complicated stubbing or end<br />

point proxies.<br />

After a long period of incubation in<br />

the WCF team, the <strong>Web</strong> API team was<br />

merged with the ASP.NET MVC team.<br />

A lot of the final <strong>Web</strong> API’s end point<br />

implementations thus mimic MVC.<br />

If all this HTTP service talk sounds<br />

confusing, let’s see if this diagram<br />

helps.<br />

62 | DNCmagazine www.dotnetcurry.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!