REST for .NET - Introduction to ASP.NET Web API

2,000 views

Published on

Norwegian .NET User Group presentation about Web API.

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

No Downloads
Views
Total views
2,000
On SlideShare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
15
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • Hej, jag heter Tomas
  • Embracing – har en veldigt enkel programmeringsmodell for å komma åt og sette saker relatert til httpLightweight – inte så mycket statiskt kontext som vi er vana med fra WebFormsHelt enkelt et bra verktøy for å bygge Web APIs, det må ikke vara publika, du kan ha desse i stedet for WCF!!!Det var førr WCF Web API, men det passade bedre in i ASP.NET så nå er det der
  • REST er noe som du må sørge for, bare fordi at du bruker et rammeverk som gjør det letter å bygge RESTful services så betyr det ikke at det blir det per automatik
  • Level 0: Communication over HTTP, no use of resources. For example SOAPLevel 1: Introducing resources, but still carrying «verbs» in the messages, most of the «rest» services are hereLevel 2: Introducing verbsLevel 3: HATEOS (Hypermedia as the engine of application state), communicating state and possible steps
  • Also some kind of reach.Other make money for you, if you have the right model
  • Internet skalar, så borde også vi. Gjenom å bruke samme typ av arkitektur så øker vi våra chansar at kunna skalera braMåste koppla isär våra appliaktioner mer når saker hamnar i cloudet
  • ASP.NET Web API finns demos og forklaringerDemo project kommer med magisk branching graf
  • REST for .NET - Introduction to ASP.NET Web API

    1. 1. REST FOR .NETIntroduction to ASP.NET Web API Oslo/NNUG Tomas Jansson 28/03/12
    2. 2. Tomas JanssonSensior Consultant - BEKK Oslo@TomasJansson
    3. 3. AGENDA What? Why? How? Demo Summary
    4. 4. What isASP.NET Web API? http://www.peopleofcolororganize.com/activism/organizing/critiquing-consensus-occupywallstreet/
    5. 5. WHAT?• Framework embracing HTTP• Lightweight• Help you build Web APIs• Old WCF Web API HTTP http://content.snapixel.com/serve-content/EBS1/m_litleskare_a07fc8179790/Photo-of-Embrace-of-a-rose.jpg
    6. 6. WHAT IT IS NOT!Web API != REST
    7. 7. RICHARDSON MATURITY MODEL (RMM)
    8. 8. http://www.shootingatbubbles.com/wp-content/uploads/2009/06/why.jpg
    9. 9. REACH http://cdn4.digitaltrends.com/wp-content/uploads/2010/08/apple-ipad-iphone-4.jpg http://www.xda-developers.com/wp-content/uploads/2011/01/wp7_lockup1_vert_small_normal132.jpg?139d23
    10. 10. SHIFT FROM SITE  APIS https://si0.twimg.com/a/1332273304/images/logos/logo_twitter_withbird_1000_allblue.png http://radar.oreilly.com/facebook-logo.jpg
    11. 11. SCALABILITY http://www.assetglobe.com/sites/default/files/assetglobe-scalability.jpg
    12. 12. How? http://1.bp.blogspot.com/_-2xZsYWDiIM/TB-2q4gkn4I/AAAAAAAABXo/pVCnXN6TZWg/s1600/snoopy3.jpg
    13. 13. DEMO• Basic CRUD• Model binding• Routing• Validation• Filters• Media type formatters• Dependency injection• Authorization• OData queries http://sfbaam.files.wordpress.com/2010/10/baam.jpg?w=510&h=510
    14. 14. SUMMARY• We are moving towards an API world• We need to embrace HTTP• Web API is not REST but can help you build RESTful services
    15. 15. RESOURCE• ASP.NET Web API (http://www.asp.net/web-api )• REST in practice by Jim Webber, Savas Parastatidis and Ian Robinson• Demo project (https://github.com/mastoj/WebApiContacts)
    16. 16. Questions?

    ×