Building Rest Services Using
ASP.NET Web API
Brij Bhushan Mishra
http://codewala.net @code_wala https://www.facebook.com/codewala
About Me
• Brij Bhushan Mishra
• 5 times Microsoft MVP - ASP.NET/IIS
• Architect/Consultant/ SME
• Avid Blogger/ Author/ Reviewer
• Speaker at top Conferences including GIDS,
TechEd, C# Corner Conference and many more
• Work closely with various organizations as SME, Content developer, Speaker,
Community Tech Reviewer
• http://codewala.net
• @code_wala
• https://www.facebook.com/codewala
http://codewala.net @code_wala https://www.facebook.com/codewala
What is REST ?
http://codewala.net @code_wala https://www.facebook.com/codewala
Everybody needs REST?
Representational State TransferRepresentational State Transfer
http://codewala.net @code_wala https://www.facebook.com/codewala
Why are we talking about Rest?
• To Understand it, let’s talk about WCF and its working
SOAPSOAPSOAP
http://codewala.net @code_wala https://www.facebook.com/codewala
What is Rest?
• Rest is an Architectural Style
Kalinga Architecture
MughalArchitecture
http://codewala.net @code_wala https://www.facebook.com/codewala
Rest Constraints
• Client Server
• Stateless server
• Cacheable
• Uniform Interface
• Layered System
• Code on Demand
http://codewala.net @code_wala https://www.facebook.com/codewala
Client Server
Request
Response
http://codewala.net @code_wala https://www.facebook.com/codewala
Stateless Sever
Request
Response
Request
Response
No State
Preserved
http://codewala.net @code_wala https://www.facebook.com/codewala
Cacheable
Request
Response
http://codewala.net @code_wala https://www.facebook.com/codewala
Request
Response
C
a
c
h
e
Uniform Interface
• Identification of a resource
• Each resource should be identified by an Id (api/books/{id})
• Manipulation of resources through representations
• Same representations should be sent back as are received via API
• Uses the standard HTTP verbs for the operation
http://codewala.net @code_wala https://www.facebook.com/codewala
Layered System
Load BalancerProxy Server
http://codewala.net @code_wala https://www.facebook.com/codewala
Why REST?
• Uses HTTP. Less Overhead and lightweight
• Content negotiation
• JSON vs XML
• Any Data from Any Where
http://codewala.net @code_wala https://www.facebook.com/codewala
What is ASP.NET Web API?
ASP.NET Web API is framework that enables to write REST based
services.
http://codewala.net @code_wala https://www.facebook.com/codewala
HTTP Verbs
• GET (Reading the resource)
• POST (Create a resource)
• PUT (Update a resource)
• DELETE (Delete a resource)
• PATCH (Update a resource)
http://codewala.net @code_wala https://www.facebook.com/codewala
Key Characteristics – Defining a Resource
• Collection or single
../api/bookstore/books or /api/bookstore/books/{id}
• Noun (not a verb)
• Navigation (for associated items)
• In Web API, Noun is typically a controller
http://codewala.net @code_wala https://www.facebook.com/codewala
Earlier versions of ASP.NET
http://codewala.net @code_wala https://www.facebook.com/codewala
ASP.NET Core 1.0
http://codewala.net @code_wala https://www.facebook.com/codewala
Postman – Tool for Testing Web API
http://codewala.net @code_wala https://www.facebook.com/codewala
Lets Build our First ASP.NET Web API
application
http://codewala.net @code_wala https://www.facebook.com/codewala
Content Negotiation
http://codewala.net @code_wala https://www.facebook.com/codewala
What we covered today
• What is not REST 
• REST Constraints
• What is ASP.NET Web API
• HTTP Verbs
• ASP.NET Core ( MVC = MVC + Web API)
• POSTMAN
• Demo.. Demo..
http://codewala.net @code_wala https://www.facebook.com/codewala
Thank You
http://codewala.net @code_wala https://www.facebook.com/codewala
http://codewala.net
@code_wala
https://www.facebook.com/codewala
brij.mishra@outlook.com
http://bit.ly/1OTSgZ8

More Related Content

PPTX
Building Modern Web Applications with ASP.NET5
PPTX
10 tips to make your ASP.NET Apps Faster
PPTX
Getting Started with ASP.NET 5
PDF
ITT Flisol 2013
PPTX
ASP.NET MVC 4
PPTX
ASP.NET MVC 4 Overview
PPTX
A Gentle Introduction to Blazor
PPTX
Host, deploy & scale Blazor Server Apps
Building Modern Web Applications with ASP.NET5
10 tips to make your ASP.NET Apps Faster
Getting Started with ASP.NET 5
ITT Flisol 2013
ASP.NET MVC 4
ASP.NET MVC 4 Overview
A Gentle Introduction to Blazor
Host, deploy & scale Blazor Server Apps

What's hot (20)

PDF
TDD a REST API With Node.js and MongoDB
PPTX
Web Application Frameworks (WAF)
PPTX
ASP.NET Brief History
KEY
SGCE 2012 Lightning Talk-Single Page Interface
PPTX
Improving Perceived Page Performance with ASP.NET Web API and AJAX
PPTX
Azure Serverless Conf
PPT
Real World Rails Deployment
PPTX
Building solutions with the SharePoint Framework - deep-dive
PDF
Introduction to ASP.NET MVC
PDF
Flask introduction
PPTX
Angular4 kickstart
PPTX
Building solutions with the SharePoint Framework - introduction
PPTX
Evolution / History of ASP.NET
PPTX
Lap Around ASP.NET MVC 5
PPSX
Web technologies practical guide
PPTX
Mvc razor and working with data
PPTX
Javascript & Jquery
PPTX
Signal r azurepresentation
PDF
Using Chat Automation - ChatOps
PPT
Introduction to ASP.NET MVC 1.0
TDD a REST API With Node.js and MongoDB
Web Application Frameworks (WAF)
ASP.NET Brief History
SGCE 2012 Lightning Talk-Single Page Interface
Improving Perceived Page Performance with ASP.NET Web API and AJAX
Azure Serverless Conf
Real World Rails Deployment
Building solutions with the SharePoint Framework - deep-dive
Introduction to ASP.NET MVC
Flask introduction
Angular4 kickstart
Building solutions with the SharePoint Framework - introduction
Evolution / History of ASP.NET
Lap Around ASP.NET MVC 5
Web technologies practical guide
Mvc razor and working with data
Javascript & Jquery
Signal r azurepresentation
Using Chat Automation - ChatOps
Introduction to ASP.NET MVC 1.0
Ad

Similar to Building rest services using aspnetwebapi (20)

PPTX
REST for .NET - Introduction to ASP.NET Web API
PPTX
RESTful APIs in .NET
PPTX
Will be an introduction to
PPTX
C# REST API
PDF
REST APIS web development for backend familiarity
PPTX
Building-Robust-APIs-ASPNET-Web-API-and-RESTful-Patterns.pptx
PPTX
Switch to Backend 2023 | Day 1 Part 1
PPTX
rest-api-basics.pptx
PPTX
How to build a rest api
PDF
Web Api 2.X - Lattanzi
PDF
ASP NET Web API 2 Building a REST Service from Start to Finish 2nd Edition Ja...
PDF
ASP.NET Web API Interview Questions By Scholarhat
PDF
Build REST APIs like a Jedi with Symfony2
PDF
IRJET- Rest API for E-Commerce Site
PPTX
Tutorial_Rest_API_For_Beginners_125.pptx
PPTX
REST and RESTful Services
PPTX
REST and ASP.NET Web API (Tunisia)
PDF
There is REST and then there is "REST"
PPTX
Codemotion Rome 2014
REST for .NET - Introduction to ASP.NET Web API
RESTful APIs in .NET
Will be an introduction to
C# REST API
REST APIS web development for backend familiarity
Building-Robust-APIs-ASPNET-Web-API-and-RESTful-Patterns.pptx
Switch to Backend 2023 | Day 1 Part 1
rest-api-basics.pptx
How to build a rest api
Web Api 2.X - Lattanzi
ASP NET Web API 2 Building a REST Service from Start to Finish 2nd Edition Ja...
ASP.NET Web API Interview Questions By Scholarhat
Build REST APIs like a Jedi with Symfony2
IRJET- Rest API for E-Commerce Site
Tutorial_Rest_API_For_Beginners_125.pptx
REST and RESTful Services
REST and ASP.NET Web API (Tunisia)
There is REST and then there is "REST"
Codemotion Rome 2014
Ad

Recently uploaded (20)

PDF
Visual explanation of Dijkstra's Algorithm using Python
PDF
CCleaner 6.39.11548 Crack 2025 License Key
PPTX
Tech Workshop Escape Room Tech Workshop
PDF
BoxLang Dynamic AWS Lambda - Japan Edition
DOC
UTEP毕业证学历认证,宾夕法尼亚克拉里恩大学毕业证未毕业
PDF
Guide to Food Delivery App Development.pdf
PDF
AI Guide for Business Growth - Arna Softech
PPTX
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
PPTX
Airline CRS | Airline CRS Systems | CRS System
PPTX
Lecture 5 Software Requirement Engineering
PPTX
Plex Media Server 1.28.2.6151 With Crac5 2022 Free .
DOCX
Modern SharePoint Intranet Templates That Boost Employee Engagement in 2025.docx
PDF
EaseUS PDF Editor Pro 6.2.0.2 Crack with License Key 2025
PPTX
4Seller: The All-in-One Multi-Channel E-Commerce Management Platform for Glob...
PDF
Workplace Software and Skills - OpenStax
PDF
Practical Indispensable Project Management Tips for Delivering Successful Exp...
PDF
Internet Download Manager IDM Crack powerful download accelerator New Version...
PPTX
Cybersecurity-and-Fraud-Protecting-Your-Digital-Life.pptx
PDF
Topaz Photo AI Crack New Download (Latest 2025)
PPTX
Introduction to Windows Operating System
Visual explanation of Dijkstra's Algorithm using Python
CCleaner 6.39.11548 Crack 2025 License Key
Tech Workshop Escape Room Tech Workshop
BoxLang Dynamic AWS Lambda - Japan Edition
UTEP毕业证学历认证,宾夕法尼亚克拉里恩大学毕业证未毕业
Guide to Food Delivery App Development.pdf
AI Guide for Business Growth - Arna Softech
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
Airline CRS | Airline CRS Systems | CRS System
Lecture 5 Software Requirement Engineering
Plex Media Server 1.28.2.6151 With Crac5 2022 Free .
Modern SharePoint Intranet Templates That Boost Employee Engagement in 2025.docx
EaseUS PDF Editor Pro 6.2.0.2 Crack with License Key 2025
4Seller: The All-in-One Multi-Channel E-Commerce Management Platform for Glob...
Workplace Software and Skills - OpenStax
Practical Indispensable Project Management Tips for Delivering Successful Exp...
Internet Download Manager IDM Crack powerful download accelerator New Version...
Cybersecurity-and-Fraud-Protecting-Your-Digital-Life.pptx
Topaz Photo AI Crack New Download (Latest 2025)
Introduction to Windows Operating System

Building rest services using aspnetwebapi

  • 1. Building Rest Services Using ASP.NET Web API Brij Bhushan Mishra http://codewala.net @code_wala https://www.facebook.com/codewala
  • 2. About Me • Brij Bhushan Mishra • 5 times Microsoft MVP - ASP.NET/IIS • Architect/Consultant/ SME • Avid Blogger/ Author/ Reviewer • Speaker at top Conferences including GIDS, TechEd, C# Corner Conference and many more • Work closely with various organizations as SME, Content developer, Speaker, Community Tech Reviewer • http://codewala.net • @code_wala • https://www.facebook.com/codewala http://codewala.net @code_wala https://www.facebook.com/codewala
  • 3. What is REST ? http://codewala.net @code_wala https://www.facebook.com/codewala
  • 4. Everybody needs REST? Representational State TransferRepresentational State Transfer http://codewala.net @code_wala https://www.facebook.com/codewala
  • 5. Why are we talking about Rest? • To Understand it, let’s talk about WCF and its working SOAPSOAPSOAP http://codewala.net @code_wala https://www.facebook.com/codewala
  • 6. What is Rest? • Rest is an Architectural Style Kalinga Architecture MughalArchitecture http://codewala.net @code_wala https://www.facebook.com/codewala
  • 7. Rest Constraints • Client Server • Stateless server • Cacheable • Uniform Interface • Layered System • Code on Demand http://codewala.net @code_wala https://www.facebook.com/codewala
  • 8. Client Server Request Response http://codewala.net @code_wala https://www.facebook.com/codewala
  • 11. Uniform Interface • Identification of a resource • Each resource should be identified by an Id (api/books/{id}) • Manipulation of resources through representations • Same representations should be sent back as are received via API • Uses the standard HTTP verbs for the operation http://codewala.net @code_wala https://www.facebook.com/codewala
  • 12. Layered System Load BalancerProxy Server http://codewala.net @code_wala https://www.facebook.com/codewala
  • 13. Why REST? • Uses HTTP. Less Overhead and lightweight • Content negotiation • JSON vs XML • Any Data from Any Where http://codewala.net @code_wala https://www.facebook.com/codewala
  • 14. What is ASP.NET Web API? ASP.NET Web API is framework that enables to write REST based services. http://codewala.net @code_wala https://www.facebook.com/codewala
  • 15. HTTP Verbs • GET (Reading the resource) • POST (Create a resource) • PUT (Update a resource) • DELETE (Delete a resource) • PATCH (Update a resource) http://codewala.net @code_wala https://www.facebook.com/codewala
  • 16. Key Characteristics – Defining a Resource • Collection or single ../api/bookstore/books or /api/bookstore/books/{id} • Noun (not a verb) • Navigation (for associated items) • In Web API, Noun is typically a controller http://codewala.net @code_wala https://www.facebook.com/codewala
  • 17. Earlier versions of ASP.NET http://codewala.net @code_wala https://www.facebook.com/codewala
  • 18. ASP.NET Core 1.0 http://codewala.net @code_wala https://www.facebook.com/codewala
  • 19. Postman – Tool for Testing Web API http://codewala.net @code_wala https://www.facebook.com/codewala
  • 20. Lets Build our First ASP.NET Web API application http://codewala.net @code_wala https://www.facebook.com/codewala
  • 21. Content Negotiation http://codewala.net @code_wala https://www.facebook.com/codewala
  • 22. What we covered today • What is not REST  • REST Constraints • What is ASP.NET Web API • HTTP Verbs • ASP.NET Core ( MVC = MVC + Web API) • POSTMAN • Demo.. Demo.. http://codewala.net @code_wala https://www.facebook.com/codewala
  • 23. Thank You http://codewala.net @code_wala https://www.facebook.com/codewala http://codewala.net @code_wala https://www.facebook.com/codewala [email protected] http://bit.ly/1OTSgZ8