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)

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

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

Web API or WCF - An Architectural Comparison
Web API or WCF - An Architectural Comparison
Adnan Masood
 
RESTful Web Services
RESTful Web Services
adeppathondur
 
RESTful APIs in .NET
RESTful APIs in .NET
Greg Sohl
 
Building rest services using aspnetwebapi
Building rest services using aspnetwebapi
Brij Mishra
 
REST Presentation
REST Presentation
Sarwajit Kumar
 
Getting started with dotnet core Web APIs
Getting started with dotnet core Web APIs
Knoldus Inc.
 
Why do you need REST
Why do you need REST
Mayank Srivastava
 
REST APIS web development for backend familiarity
REST APIS web development for backend familiarity
ARTUROGOMEZGARCIA2
 
OAuth-as-a-service using ASP.NET Web API and Windows Azure Access Control
OAuth-as-a-service using ASP.NET Web API and Windows Azure Access Control
Maarten Balliauw
 
How to build a rest api
How to build a rest api
Hoang Nguyen
 
rest-api-basics.pptx
rest-api-basics.pptx
AgungSutikno1
 
ASP NET Web API 2 Building a REST Service from Start to Finish 2nd Edition Ja...
ASP NET Web API 2 Building a REST Service from Start to Finish 2nd Edition Ja...
prienmance8p
 
Tutorial_Rest_API_For_Beginners_125.pptx
Tutorial_Rest_API_For_Beginners_125.pptx
T.Choithram & Sons Dubai
 
Web api using rest based architecture
Web api using rest based architecture
Soham Kulkarni
 
ASP.NET Mvc 4 web api
ASP.NET Mvc 4 web api
Tiago Knoch
 
Http and REST APIs.
Http and REST APIs.
Rahul Tanwani
 
The Design of Web APIs Second Edition MEAP Arnaud Lauret
The Design of Web APIs Second Edition MEAP Arnaud Lauret
meidelmhamed
 
zendframework2 restful
zendframework2 restful
tom_li
 
Rest WebAPI with OData
Rest WebAPI with OData
Mahek Merchant
 
Web Api 2.X - Lattanzi
Web Api 2.X - Lattanzi
Codemotion
 
Web API or WCF - An Architectural Comparison
Web API or WCF - An Architectural Comparison
Adnan Masood
 
RESTful Web Services
RESTful Web Services
adeppathondur
 
RESTful APIs in .NET
RESTful APIs in .NET
Greg Sohl
 
Building rest services using aspnetwebapi
Building rest services using aspnetwebapi
Brij Mishra
 
Getting started with dotnet core Web APIs
Getting started with dotnet core Web APIs
Knoldus Inc.
 
REST APIS web development for backend familiarity
REST APIS web development for backend familiarity
ARTUROGOMEZGARCIA2
 
OAuth-as-a-service using ASP.NET Web API and Windows Azure Access Control
OAuth-as-a-service using ASP.NET Web API and Windows Azure Access Control
Maarten Balliauw
 
How to build a rest api
How to build a rest api
Hoang Nguyen
 
rest-api-basics.pptx
rest-api-basics.pptx
AgungSutikno1
 
ASP NET Web API 2 Building a REST Service from Start to Finish 2nd Edition Ja...
ASP NET Web API 2 Building a REST Service from Start to Finish 2nd Edition Ja...
prienmance8p
 
Web api using rest based architecture
Web api using rest based architecture
Soham Kulkarni
 
ASP.NET Mvc 4 web api
ASP.NET Mvc 4 web api
Tiago Knoch
 
The Design of Web APIs Second Edition MEAP Arnaud Lauret
The Design of Web APIs Second Edition MEAP Arnaud Lauret
meidelmhamed
 
zendframework2 restful
zendframework2 restful
tom_li
 
Rest WebAPI with OData
Rest WebAPI with OData
Mahek Merchant
 
Web Api 2.X - Lattanzi
Web Api 2.X - Lattanzi
Codemotion
 
Ad

More from Tomas Jansson (12)

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

Recently uploaded (20)

Oracle Cloud Infrastructure AI Foundations
Oracle Cloud Infrastructure AI Foundations
VICTOR MAESTRE RAMIREZ
 
June Patch Tuesday
June Patch Tuesday
Ivanti
 
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
angelo60207
 
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 
Artificial Intelligence in the Nonprofit Boardroom.pdf
Artificial Intelligence in the Nonprofit Boardroom.pdf
OnBoard
 
Providing an OGC API Processes REST Interface for FME Flow
Providing an OGC API Processes REST Interface for FME Flow
Safe Software
 
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Alliance
 
Supporting the NextGen 911 Digital Transformation with FME
Supporting the NextGen 911 Digital Transformation with FME
Safe Software
 
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Puppy jhon
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
NTT DATA Technology & Innovation
 
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Anish Kumar
 
PyData - Graph Theory for Multi-Agent Integration
PyData - Graph Theory for Multi-Agent Integration
barqawicloud
 
Your startup on AWS - How to architect and maintain a Lean and Mean account
Your startup on AWS - How to architect and maintain a Lean and Mean account
angelo60207
 
Bridging the divide: A conversation on tariffs today in the book industry - T...
Bridging the divide: A conversation on tariffs today in the book industry - T...
BookNet Canada
 
Crypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdf
Stephen Perrenod
 
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Alliance
 
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Shashikant Jagtap
 
High Availability On-Premises FME Flow.pdf
High Availability On-Premises FME Flow.pdf
Safe Software
 
Down the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training Roadblocks
Rustici Software
 
Oracle Cloud Infrastructure AI Foundations
Oracle Cloud Infrastructure AI Foundations
VICTOR MAESTRE RAMIREZ
 
June Patch Tuesday
June Patch Tuesday
Ivanti
 
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
angelo60207
 
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 
Artificial Intelligence in the Nonprofit Boardroom.pdf
Artificial Intelligence in the Nonprofit Boardroom.pdf
OnBoard
 
Providing an OGC API Processes REST Interface for FME Flow
Providing an OGC API Processes REST Interface for FME Flow
Safe Software
 
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Alliance
 
Supporting the NextGen 911 Digital Transformation with FME
Supporting the NextGen 911 Digital Transformation with FME
Safe Software
 
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Puppy jhon
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
NTT DATA Technology & Innovation
 
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Anish Kumar
 
PyData - Graph Theory for Multi-Agent Integration
PyData - Graph Theory for Multi-Agent Integration
barqawicloud
 
Your startup on AWS - How to architect and maintain a Lean and Mean account
Your startup on AWS - How to architect and maintain a Lean and Mean account
angelo60207
 
Bridging the divide: A conversation on tariffs today in the book industry - T...
Bridging the divide: A conversation on tariffs today in the book industry - T...
BookNet Canada
 
Crypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdf
Stephen Perrenod
 
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Alliance
 
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Shashikant Jagtap
 
High Availability On-Premises FME Flow.pdf
High Availability On-Premises FME Flow.pdf
Safe Software
 
Down the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training Roadblocks
Rustici Software
 

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