one service, any device, any platform - web api
DESCRIPTION
ASP.NET Web API a new framework for creating HTTP services that can reach a broad range of clients including browsers and mobile devices. ASP.NET Web API is also an ideal platform for building RESTful services.TRANSCRIPT
One Service, Any Device, Any Platform - Web APIShravan Kumar KasagoniMicrosoft MVP ASP.NET | Thomson Reutershttp://theshravan.net@techieshravan
Building Http Services Using Web API
Agenda
One ASP.NET
ASP.N
ET
Site
sServ
ices
Web API
SignalR
MVC
Web Pages
Web Forms
Single Pages
What is Web API?
Web API a new framework for creating HTTP services that can reach a broad range of clients including browsers and mobile devices.
Modern HTTP programming model- Directly access and manipulate HTTP requests and responses in your Web APIs using a clean, strongly typed HTTP object model.
Shipped with ASP.NET MVC 4 Beta
Not linked MVC – you can use alone (Web Forms, WPF, etc..)
Ideal platform for Building RESTful Applications
Why Web APIs?
Protocols for Building Services
First apear as WCF Web API
HTTP related
WCF -wider that HTTP (TCP, Named Pipe, WinService, etc)
WCF to ASP.NET Web API
Build Richer AppsReach More Clients
Web API Growth
Source: www.programmableweb.com – current APIs: 4535
+ 100% + 50%+ 3400%+ 235%+ 71% + 86% + 46%+ 63%
GET /en/html/dummy.php?name=MyName&married=not+single &male=yes HTTP/1.1Host: www.explainth.atUser-Agent: Mozilla/5.0 (Windows;en-GB; rv:1.8.0.11) Gecko/20070312 Firefox/1.5.0.11Accept: text/xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5Accept-Language: en-gb,en;q=0.5Accept-Encoding: gzip,deflateAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7Keep-Alive: 300Connection: keep-aliveReferer: http://www.explainth.at/en/misc/httpreq.shtml
Embrace HTTP
Flexible Hosting
Content negotiation
Query composition
Model binding and validation
Routing
FiltersImproved testability
IoC Support
Demo:Building a Web API
Demo: Calling A Web API from JavaScript
Demo: OData – Querying Support
Demo: Self-Hosting Web API
Referenceshttp://asp.net/web-api http://theshravan.net
Reach MeMy Blog : http://theshravan.netTwitter : techieshravan
Thank You