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

Viewers also liked (11)

PPTX
Will be an introduction to
Sayed Ahmed
 
PPTX
ASP.NET Web API
habib_786
 
PPTX
REST and ASP.NET Web API (Milan)
Jef Claes
 
PPTX
REST and ASP.NET Web API (Tunisia)
Jef Claes
 
PPTX
RESTful API and ASP.NET
DelphiCon
 
PPTX
Web api
Sudhakar Sharma
 
PDF
Asp.net web apiのすゝめ
Kazunori Hamamoto
 
PPTX
The ASP.NET Web API for Beginners
Kevin Hazzard
 
PPTX
ASP.NET Core MVC + Web API with Overview
Shahed Chowdhuri
 
PDF
C# ASP.NET WEB API APPLICATION DEVELOPMENT
Dr. Awase Khirni Syed
 
PPTX
ASP.NET Web API and HTTP Fundamentals
Ido Flatow
 
Will be an introduction to
Sayed Ahmed
 
ASP.NET Web API
habib_786
 
REST and ASP.NET Web API (Milan)
Jef Claes
 
REST and ASP.NET Web API (Tunisia)
Jef Claes
 
RESTful API and ASP.NET
DelphiCon
 
Asp.net web apiのすゝめ
Kazunori Hamamoto
 
The ASP.NET Web API for Beginners
Kevin Hazzard
 
ASP.NET Core MVC + Web API with Overview
Shahed Chowdhuri
 
C# ASP.NET WEB API APPLICATION DEVELOPMENT
Dr. Awase Khirni Syed
 
ASP.NET Web API and HTTP Fundamentals
Ido Flatow
 

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

PDF
Creating an Effective Mobile API
Nick DeNardis
 
PDF
DevOps Note 20120224
Hirokazu MORIKAWA
 
PDF
DevSecCon Asia 2017 Fabian Lim: DevSecOps in the government
DevSecCon
 
PPTX
Digital bootcamp for_ed_leaders_aug2010
Nicole Lakusta
 
PDF
RESS: An Evolution of Responsive Web Design
Dave Olsen
 
PDF
Going Node At Netflix
Ryan Anklam
 
PDF
IBM Bluemix Hackathon Accelerator
gjuljo
 
PPTX
Security Testing by Ken De Souza
QA or the Highway
 
PDF
Building Rich Applications with Appcelerator
Matt Raible
 
PDF
API Reliability Guide
Nick DeNardis
 
PDF
DevOps Note
Hirokazu MORIKAWA
 
PDF
URL Design
Walter Ebert
 
PPTX
Cloudy Open Source and DevOps
Matt O'Keefe
 
PPTX
Introduction to the azure service bus eai edi features
Sandro Pereira
 
PDF
Reliability & Scale in AWS while letting you sleep through the night
Jos Boumans
 
PDF
Fat client, CMS as API
TM123
 
PDF
IBM Bluemix Tech Meetup 18-02-2015
gjuljo
 
PPTX
Cassandra summit - Big Data Apps on the cloud
Uri Cohen
 
PDF
Why Game Developers Should Care About HTML5
Bramus Van Damme
 
PPTX
Microservices in production
Võ Duy Tuấn
 
Creating an Effective Mobile API
Nick DeNardis
 
DevOps Note 20120224
Hirokazu MORIKAWA
 
DevSecCon Asia 2017 Fabian Lim: DevSecOps in the government
DevSecCon
 
Digital bootcamp for_ed_leaders_aug2010
Nicole Lakusta
 
RESS: An Evolution of Responsive Web Design
Dave Olsen
 
Going Node At Netflix
Ryan Anklam
 
IBM Bluemix Hackathon Accelerator
gjuljo
 
Security Testing by Ken De Souza
QA or the Highway
 
Building Rich Applications with Appcelerator
Matt Raible
 
API Reliability Guide
Nick DeNardis
 
DevOps Note
Hirokazu MORIKAWA
 
URL Design
Walter Ebert
 
Cloudy Open Source and DevOps
Matt O'Keefe
 
Introduction to the azure service bus eai edi features
Sandro Pereira
 
Reliability & Scale in AWS while letting you sleep through the night
Jos Boumans
 
Fat client, CMS as API
TM123
 
IBM Bluemix Tech Meetup 18-02-2015
gjuljo
 
Cassandra summit - Big Data Apps on the cloud
Uri Cohen
 
Why Game Developers Should Care About HTML5
Bramus Van Damme
 
Microservices in production
Võ Duy Tuấn
 
Ad

More from Tomas Jansson (12)

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

Recently uploaded (20)

PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PDF
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PPTX
Digital Circuits, important subject in CS
contactparinay1
 
PDF
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Digital Circuits, important subject in CS
contactparinay1
 
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 

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