SlideShare a Scribd company logo
REST FOR .NET


Introduction to ASP.NET Web API




           Oslo/NNUG
         Tomas Jansson
            28/03/12
Tomas Jansson
Sensior Consultant - BEKK Oslo
@TomasJansson
AGENDA



         What?
         Why?
         How?
         Demo
         Summary
What is
ASP.NET Web
    API?



              http://www.peopleofcolororganize.com/activism/organizing/critiquing-consensus-occupywallstreet/
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
WHAT IT IS NOT!




Web API != REST
RICHARDSON MATURITY MODEL (RMM)
http://www.shootingatbubbles.com/wp-content/uploads/2009/06/why.jpg
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
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
SCALABILITY




              http://www.assetglobe.com/sites/default/files/assetglobe-scalability.jpg
How?




  http://1.bp.blogspot.com/_-2xZsYWDiIM/TB-2q4gkn4I/AAAAAAAABXo/pVCnXN6TZWg/s1600/snoopy3.jpg
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
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
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)
Questions?

More Related Content

PDF
My Portfolio
PPTX
How technology has impacted our lives
PPTX
How technology has impacted our lives
PPTX
Build Responsive Enterprise-Grade Web Apps with OpenUI5
PPTX
OpenStack at Scale - My Learnings
PPTX
Taking Web Applications Offline
PDF
The Web Performance Testing Toolbox (Jfokus 2013)
My Portfolio
How technology has impacted our lives
How technology has impacted our lives
Build Responsive Enterprise-Grade Web Apps with OpenUI5
OpenStack at Scale - My Learnings
Taking Web Applications Offline
The Web Performance Testing Toolbox (Jfokus 2013)

Viewers also liked (11)

PPTX
Will be an introduction to
PPTX
ASP.NET Web API
PPTX
REST and ASP.NET Web API (Milan)
PPTX
REST and ASP.NET Web API (Tunisia)
PPTX
RESTful API and ASP.NET
PPTX
PDF
Asp.net web apiのすゝめ
PPTX
The ASP.NET Web API for Beginners
PPTX
ASP.NET Core MVC + Web API with Overview
PDF
C# ASP.NET WEB API APPLICATION DEVELOPMENT
PPTX
ASP.NET Web API and HTTP Fundamentals
Will be an introduction to
ASP.NET Web API
REST and ASP.NET Web API (Milan)
REST and ASP.NET Web API (Tunisia)
RESTful API and ASP.NET
Asp.net web apiのすゝめ
The ASP.NET Web API for Beginners
ASP.NET Core MVC + Web API with Overview
C# ASP.NET WEB API APPLICATION DEVELOPMENT
ASP.NET Web API and HTTP Fundamentals
Ad

Similar to REST for .NET - Introduction to ASP.NET Web API (20)

PPTX
Web API or WCF - An Architectural Comparison
PPTX
RESTful Web Services
PPTX
RESTful APIs in .NET
PPTX
Building rest services using aspnetwebapi
PPTX
REST Presentation
PPTX
Getting started with dotnet core Web APIs
PDF
Why do you need REST
PDF
REST APIS web development for backend familiarity
PPTX
OAuth-as-a-service using ASP.NET Web API and Windows Azure Access Control
PPTX
How to build a rest api
PPTX
rest-api-basics.pptx
PDF
ASP NET Web API 2 Building a REST Service from Start to Finish 2nd Edition Ja...
PPTX
Tutorial_Rest_API_For_Beginners_125.pptx
PPTX
Web api using rest based architecture
PPTX
ASP.NET Mvc 4 web api
PPTX
Http and REST APIs.
PDF
The Design of Web APIs Second Edition MEAP Arnaud Lauret
PDF
zendframework2 restful
PPTX
Rest WebAPI with OData
PDF
Web Api 2.X - Lattanzi
Web API or WCF - An Architectural Comparison
RESTful Web Services
RESTful APIs in .NET
Building rest services using aspnetwebapi
REST Presentation
Getting started with dotnet core Web APIs
Why do you need REST
REST APIS web development for backend familiarity
OAuth-as-a-service using ASP.NET Web API and Windows Azure Access Control
How to build a rest api
rest-api-basics.pptx
ASP NET Web API 2 Building a REST Service from Start to Finish 2nd Edition Ja...
Tutorial_Rest_API_For_Beginners_125.pptx
Web api using rest based architecture
ASP.NET Mvc 4 web api
Http and REST APIs.
The Design of Web APIs Second Edition MEAP Arnaud Lauret
zendframework2 restful
Rest WebAPI with OData
Web Api 2.X - Lattanzi
Ad

More from Tomas Jansson (12)

PPTX
Functional webapplicaations using fsharp and suave
PPTX
F# as our day job by 2016
PPTX
What does the future hold for us in asp.net 5
PPTX
Polyglot heaven
PPTX
OWIN Web API with Linky
PPTX
PPTX
File -> new project to deploy in 10 minutes with TeamCity and Octopus Deploy
PPTX
Getting started with Elasticsearch and .NET
PPTX
Deployment taken seriously with Octopus Deploy and TeamCity
PPTX
State or intent
PPTX
NServiceBus workshop presentation
PPTX
SignalR - Building an async web app with .NET
Functional webapplicaations using fsharp and suave
F# as our day job by 2016
What does the future hold for us in asp.net 5
Polyglot heaven
OWIN Web API with Linky
File -> new project to deploy in 10 minutes with TeamCity and Octopus Deploy
Getting started with Elasticsearch and .NET
Deployment taken seriously with Octopus Deploy and TeamCity
State or intent
NServiceBus workshop presentation
SignalR - Building an async web app with .NET

Recently uploaded (20)

PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPT
Teaching material agriculture food technology
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
KodekX | Application Modernization Development
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Encapsulation_ Review paper, used for researhc scholars
Chapter 3 Spatial Domain Image Processing.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Network Security Unit 5.pdf for BCA BBA.
Per capita expenditure prediction using model stacking based on satellite ima...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Teaching material agriculture food technology
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
MYSQL Presentation for SQL database connectivity
Building Integrated photovoltaic BIPV_UPV.pdf
cuic standard and advanced reporting.pdf
Machine learning based COVID-19 study performance prediction
KodekX | Application Modernization Development
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Reach Out and Touch Someone: Haptics and Empathic Computing

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

Editor's Notes

  • #3: Hej, jag heter Tomas
  • #6: 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
  • #7: 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
  • #8: 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
  • #11: Also some kind of reach.Other make money for you, if you have the right model
  • #12: 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
  • #16: ASP.NET Web API finns demos og forklaringerDemo project kommer med magisk branching graf