CodeCamp Iasi 10 March 2012 - Gabriel Enea - ASP.NET Web API

3,815 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
3,815
On SlideShare
0
From Embeds
0
Number of Embeds
1,854
Actions
Shares
0
Downloads
55
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

CodeCamp Iasi 10 March 2012 - Gabriel Enea - ASP.NET Web API

  1. 1. ASP.NET Web API in 30minGabriel ENEAMaxcode@dotnet18 / gabrielenea.blogspot.com10 march 2012
  2. 2. Agenda Background Web API overview, concepts, elements, architecture if (codecamp.AvailableTime) { // run some demos me.Run.Demo1(); me.Run.Demo2(); } else { throw new UsualTimeoutException(); }
  3. 3. Server vs. Client side UIprocessing 100 80 60 40 Client Server 20 0WebForms, 2002 MVC, 2009 WebAPI ?, 2012
  4. 4. What is ASP.NET Web API? A framework that makes it easy to buildHTTP services that reach a broad range of clients, including browsers and mobile devices.
  5. 5. Web API target: any device
  6. 6. One ASP.NETScott Hanselman (hanselman.com)
  7. 7. Web API is built around… URI - Uniform Resource Identifier HTTP communication protocol HTTP methods (GET, PUT, POST, and DELETE)
  8. 8. Do you love me ASP.NET MVC ?
  9. 9. No, I love ASP.NET Web API Uses common concepts from ASP.NET MVC  Controllers  Routing  Model  Model Binding  Model Validation  Filters  Dependency Injection  Security+  HTTP content negotiation
  10. 10. More about ASP.NET Web API Uses common concepts from ASP.NET MVC  Controllers  Routing  Model  Model Binding  Model Validation  Filters  Dependency Injection  Security+  HTTP content negotiation
  11. 11. Web API - Routing Based on a routing table, each HTTP message is mapped to an action. Uses HTTP method name to select an action!
  12. 12. 1st demoComments management
  13. 13. HTTP Message HandlersPipeline for processing HTTP messages on both the client and server. src: http://blog.highwaterfilters.com/epa-wants-more-analysis-on-keystone-oil-sands-pipeline/
  14. 14. HTTP Message HandlersBuilt on some common objects: HttpRequestMessage HttpResponseMessage HttpMessageHandler
  15. 15. HTTP Message Handlers on Client-1
  16. 16. HTTP Message Handlers on Client -2
  17. 17. HTTP Message Handlers on Client -3
  18. 18. HTTP Message Handlers onServer
  19. 19. More features - ASP.NET WebAPI Async support OData support Self-Host Media Formatters (built-in support for XML, JSON, and form-url encoded data)
  20. 20. 2nd demoClient + Server in memory
  21. 21. ASP.NET Web API in 30 min No questions!?
  22. 22. ASP.NET Web API - Resources www.asp.net/web-api
  23. 23. Pls. fill your eval. formASP.NET Web API in 30 src: http://idowindows.wordpress.com/2011/10/15/welcome-and-thank-you/minGabriel ENEAMaxcode@dotnet18 / gabrielenea.blogspot.com10 march 2012

×