SlideShare a Scribd company logo
C# web api
C# web api
Agenda
What is Web API?
Agenda
ASP .NET Web API
Agenda
ASP .NET Web API Characteristics
Agenda
ASP.NET Web API Version
Agenda
ASP.NET Web API vs WCF
When to choose ASP.NET Web API?
Agenda
C# web api
What is Web API?
An application programming interface (API) is a set of subroutine definitions, protocols, and tools
for developing software and applications in computer programming.
What is Web API?
API is a type of interface with a set of functions that allow programmers to access specific
features or data of an application, operating system, or other services.
What is Web API?
As the name implies, Web API is a web-based API that can be accessed via the HTTP protocol.
It is a concept rather than a technology. We can create Web APIs using various technologies
such as Java, NET, and others. Twitter's REST APIs, for example, provide programmatic access
to read and write data, allowing us to integrate Twitter's capabilities into our application.
C# web api
ASP .NET Web API
Web API
HTTP Response Data
(JSON/XML/Other
Format)
HTTP Request
HTTP Response Data
(JSON/XML/Other
Format)
HTTP Request
HTTP
Request
HTTP
Response
Data
(JSON/XML/Other
Format)
The ASP.NET Web API is an extensible framework for creating HTTP-based services that can be
accessed in various applications on various platforms such as web, windows, mobile etc.
Web
Application
Mobile
Application
Win Form
Application
ASP .NET Web API
It functions similarly to an ASP.NET MVC web application, except it sends data as a response
instead of an HTML view. It functions similarly to a web service or WCF service, except it only
supports the HTTP protocol.
Web API
HTTP Response Data
(JSON/XML/Other
Format)
HTTP Request
HTTP Response Data
(JSON/XML/Other
Format)
HTTP Request
HTTP
Request
HTTP
Response
Data
(JSON/XML/Other
Format)
Web
Application
Mobile
Application
Win Form
Application
C# web api
The ASP.NET Web API platform is ideal for developing RESTful
services.
ASP .NET Web API Characteristics
ASP.NET Web API is based on ASP.NET and supports the
ASP.NET request/response pipeline. HTTP verbs are
translated into method names by ASP.NET Web API.
ASP .NET Web API Characteristics
The ASP.NET Web API supports a variety of response data
formats. JSON, XML, and BSON format support is built-in.
ASP .NET Web API Characteristics
ASP.NET Web API can be hosted in IIS, Self-hosted, or any
other web server that supports.NET 4.0 or higher.
ASP .NET Web API Characteristics
To communicate with the Web API server, the ASP.NET Web
API framework includes a new HTTP Client. HTTP Client can
be used on the server-side of ASP, MVC, in Windows Form
applications, Console applications, and other apps.
ASP .NET Web API Characteristics
C# web api
ASP .NET Web API Versions
Web API Version Supported .NET
Framework
Coincides with Supported in
Web API 1.0 .NET Framework 4.0 ASP.NET MVC 4 VS 2010
Web API 2 - Current .NET Framework 4.5 ASP.NET MVC 5 VS 2012, 2013
C# web api
ASP .NET Web API vs WCF
Web API WCF
It is open source and comes with the.NET
framework.
The.NET framework is included.
Only the HTTP protocol is supported. HTTP, TCP, UDP, and custom transport protocols
are all supported.
Http verbs to methods mapping The attributes-based programming model is
used.
Like ASP.NET MVC, it employs a routing and
controller concept.
Contracts for Service, Operation, and Data are
used.
It does not support Reliable Messaging or
transactions.
Reliable Messaging and Transactions are
supported.
The HTTP Configuration class can configure web
APIs, but not web. Config.
To configure a service, use the web. Config and
attributes.
It's ideal for creating RESTful services. RESTful services are supported but with
limitations.
ASP .NET Web API vs WCF
If you're using.NET Framework 3.5, go with WCF. Web API
does not work with.NET 3.5 or lower.
ASP .NET Web API vs WCF
If your service must support multiple protocols, such as
HTTP, TCP, and Named Pipes, use WCF.
ASP .NET Web API vs WCF
Choose WCF if you want to create services that adhere to
WS-* standards such as Reliable Messaging, Transactions,
and Message Security.
ASP .NET Web API vs WCF
If you want to use the Request-Reply, One-Way, and Duplex
message exchange patterns, go with WCF.
C# web api
When to Choose ASP .NET Web API
If you are using.NET framework 4.0 or higher, select Web
API.
If you want to build a service that only supports the HTTP
protocol, goes with Web API.
When to Choose ASP .NET Web API
To create RESTful HTTP-based services, use Web API.
When to Choose ASP .NET Web API
If you're familiar with ASP.NET MVC, go with Web API.
When to Choose ASP .NET Web API
C# web api
C# web api

More Related Content

What's hot (20)

PDF
What is REST API? REST API Concepts and Examples | Edureka
Edureka!
 
PDF
NextJS, A JavaScript Framework for building next generation SPA
Pramendra Gupta
 
PPTX
Introduction Node.js
Erik van Appeldoorn
 
PPTX
Asp.net web api
Binu Bhasuran
 
PDF
Postman: An Introduction for Testers
Postman
 
PPTX
API Testing for everyone.pptx
Pricilla Bilavendran
 
PDF
Postman Webinar: “Continuous Testing with Postman”
Postman
 
PDF
React Server Side Rendering with Next.js
Jamie Barton 👨🏻‍💻
 
PPTX
Azure Functions Real World Examples
Yochay Kiriaty
 
PDF
Rest web services
Paulo Gandra de Sousa
 
PPTX
Test Design and Automation for REST API
Ivan Katunou
 
PPTX
What is Ajax technology?
JavaTpoint.Com
 
PPTX
An Introduction to OAuth 2
Aaron Parecki
 
PPTX
Api-First service design
Stefaan Ponnet
 
PDF
gRPC and Microservices
Jonathan Gomez
 
PPTX
ASP.NET Core MVC + Web API with Overview
Shahed Chowdhuri
 
PDF
Basic overview of Angular
Aleksei Bulgak
 
PDF
Solid NodeJS with TypeScript, Jest & NestJS
Rafael Casuso Romate
 
PDF
Postman: An Introduction for Developers
Postman
 
PPTX
Angular Unit Testing
Shailendra Chauhan
 
What is REST API? REST API Concepts and Examples | Edureka
Edureka!
 
NextJS, A JavaScript Framework for building next generation SPA
Pramendra Gupta
 
Introduction Node.js
Erik van Appeldoorn
 
Asp.net web api
Binu Bhasuran
 
Postman: An Introduction for Testers
Postman
 
API Testing for everyone.pptx
Pricilla Bilavendran
 
Postman Webinar: “Continuous Testing with Postman”
Postman
 
React Server Side Rendering with Next.js
Jamie Barton 👨🏻‍💻
 
Azure Functions Real World Examples
Yochay Kiriaty
 
Rest web services
Paulo Gandra de Sousa
 
Test Design and Automation for REST API
Ivan Katunou
 
What is Ajax technology?
JavaTpoint.Com
 
An Introduction to OAuth 2
Aaron Parecki
 
Api-First service design
Stefaan Ponnet
 
gRPC and Microservices
Jonathan Gomez
 
ASP.NET Core MVC + Web API with Overview
Shahed Chowdhuri
 
Basic overview of Angular
Aleksei Bulgak
 
Solid NodeJS with TypeScript, Jest & NestJS
Rafael Casuso Romate
 
Postman: An Introduction for Developers
Postman
 
Angular Unit Testing
Shailendra Chauhan
 

Similar to C# web api (20)

PPTX
Web API or WCF - An Architectural Comparison
Adnan Masood
 
PDF
Difference between wcf and asp.net web api
Umar Ali
 
PDF
ASP.NET Web API Interview Questions By Scholarhat
Scholarhat
 
PPTX
Enjoying the Move from WCF to the Web API
Kevin Hazzard
 
PPTX
CodeCamp Iasi 10 March 2012 - Gabriel Enea - ASP.NET Web API
Codecamp Romania
 
PPTX
ASP.NET Mvc 4 web api
Tiago Knoch
 
PPTX
Web api
udaiappa
 
PDF
MS TechDays 2011 - WCF Web APis There's a URI for That
Spiffy
 
PPTX
Xml web services
Raghu nath
 
PDF
Difference between asp.net web api and asp.net mvc
Umar Ali
 
PDF
Complete guidance book of Asp.Net Web API
Shabista Imam
 
PDF
ASP NET Web API 2 Building a REST Service from Start to Finish 2nd Edition Ja...
prienmance8p
 
PPTX
Website RESTful APIs
Tyrone Allen
 
PPTX
06 web api
Bat Programmer
 
PPTX
REST and ASP.NET Web API (Tunisia)
Jef Claes
 
PPTX
Api design part 1
Ibrahim Elsawaf
 
PDF
Unleash the power of HTTP with ASP.NET Web API
Filip W
 
PPTX
Web service, wcf, web api
AbdeliDhankot
 
PDF
Web api vs asp.net
Micky S
 
PPTX
Introduction to APIs (Application Programming Interface)
Vibhawa Nirmal
 
Web API or WCF - An Architectural Comparison
Adnan Masood
 
Difference between wcf and asp.net web api
Umar Ali
 
ASP.NET Web API Interview Questions By Scholarhat
Scholarhat
 
Enjoying the Move from WCF to the Web API
Kevin Hazzard
 
CodeCamp Iasi 10 March 2012 - Gabriel Enea - ASP.NET Web API
Codecamp Romania
 
ASP.NET Mvc 4 web api
Tiago Knoch
 
Web api
udaiappa
 
MS TechDays 2011 - WCF Web APis There's a URI for That
Spiffy
 
Xml web services
Raghu nath
 
Difference between asp.net web api and asp.net mvc
Umar Ali
 
Complete guidance book of Asp.Net Web API
Shabista Imam
 
ASP NET Web API 2 Building a REST Service from Start to Finish 2nd Edition Ja...
prienmance8p
 
Website RESTful APIs
Tyrone Allen
 
06 web api
Bat Programmer
 
REST and ASP.NET Web API (Tunisia)
Jef Claes
 
Api design part 1
Ibrahim Elsawaf
 
Unleash the power of HTTP with ASP.NET Web API
Filip W
 
Web service, wcf, web api
AbdeliDhankot
 
Web api vs asp.net
Micky S
 
Introduction to APIs (Application Programming Interface)
Vibhawa Nirmal
 
Ad

More from Simplilearn (20)

PPTX
Top 50 Scrum Master Interview Questions | Scrum Master Interview Questions & ...
Simplilearn
 
PPTX
Bagging Vs Boosting In Machine Learning | Ensemble Learning In Machine Learni...
Simplilearn
 
PPTX
Future Of Social Media | Social Media Trends and Strategies 2025 | Instagram ...
Simplilearn
 
PPTX
SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...
Simplilearn
 
PPTX
SQL INterview Questions .pTop 45 SQL Interview Questions And Answers In 2025 ...
Simplilearn
 
PPTX
How To Start Influencer Marketing Business | Influencer Marketing For Beginne...
Simplilearn
 
PPTX
Cyber Security Roadmap 2025 | How To Become Cyber Security Engineer In 2025 |...
Simplilearn
 
PPTX
How To Become An AI And ML Engineer In 2025 | AI Engineer Roadmap | AI ML Car...
Simplilearn
 
PPTX
What Is GitHub Copilot? | How To Use GitHub Copilot? | How does GitHub Copilo...
Simplilearn
 
PPTX
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Simplilearn
 
PPTX
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Simplilearn
 
PPTX
Top 7 High Paying AI Certifications Courses For 2025 | Best AI Certifications...
Simplilearn
 
PPTX
Data Cleaning In Data Mining | Step by Step Data Cleaning Process | Data Clea...
Simplilearn
 
PPTX
Top 10 Data Analyst Projects For 2025 | Data Analyst Projects | Data Analysis...
Simplilearn
 
PPTX
AI Engineer Roadmap 2025 | AI Engineer Roadmap For Beginners | AI Engineer Ca...
Simplilearn
 
PPTX
Machine Learning Roadmap 2025 | Machine Learning Engineer Roadmap For Beginne...
Simplilearn
 
PPTX
Kotter's 8-Step Change Model Explained | Kotter's Change Management Model | S...
Simplilearn
 
PPTX
Gen AI Engineer Roadmap For 2025 | How To Become Gen AI Engineer In 2025 | Si...
Simplilearn
 
PPTX
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Simplilearn
 
PPTX
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Simplilearn
 
Top 50 Scrum Master Interview Questions | Scrum Master Interview Questions & ...
Simplilearn
 
Bagging Vs Boosting In Machine Learning | Ensemble Learning In Machine Learni...
Simplilearn
 
Future Of Social Media | Social Media Trends and Strategies 2025 | Instagram ...
Simplilearn
 
SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...
Simplilearn
 
SQL INterview Questions .pTop 45 SQL Interview Questions And Answers In 2025 ...
Simplilearn
 
How To Start Influencer Marketing Business | Influencer Marketing For Beginne...
Simplilearn
 
Cyber Security Roadmap 2025 | How To Become Cyber Security Engineer In 2025 |...
Simplilearn
 
How To Become An AI And ML Engineer In 2025 | AI Engineer Roadmap | AI ML Car...
Simplilearn
 
What Is GitHub Copilot? | How To Use GitHub Copilot? | How does GitHub Copilo...
Simplilearn
 
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Simplilearn
 
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Simplilearn
 
Top 7 High Paying AI Certifications Courses For 2025 | Best AI Certifications...
Simplilearn
 
Data Cleaning In Data Mining | Step by Step Data Cleaning Process | Data Clea...
Simplilearn
 
Top 10 Data Analyst Projects For 2025 | Data Analyst Projects | Data Analysis...
Simplilearn
 
AI Engineer Roadmap 2025 | AI Engineer Roadmap For Beginners | AI Engineer Ca...
Simplilearn
 
Machine Learning Roadmap 2025 | Machine Learning Engineer Roadmap For Beginne...
Simplilearn
 
Kotter's 8-Step Change Model Explained | Kotter's Change Management Model | S...
Simplilearn
 
Gen AI Engineer Roadmap For 2025 | How To Become Gen AI Engineer In 2025 | Si...
Simplilearn
 
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Simplilearn
 
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Simplilearn
 
Ad

Recently uploaded (20)

PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PPTX
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
PPTX
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
PPTX
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PPTX
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PPTX
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PDF
Horarios de distribución de agua en julio
pegazohn1978
 
PPTX
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
PDF
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
Dimensions of Societal Planning in Commonism
StefanMz
 
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
Horarios de distribución de agua en julio
pegazohn1978
 
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 

C# web api

  • 5. Agenda ASP .NET Web API Characteristics
  • 8. When to choose ASP.NET Web API? Agenda
  • 10. What is Web API? An application programming interface (API) is a set of subroutine definitions, protocols, and tools for developing software and applications in computer programming.
  • 11. What is Web API? API is a type of interface with a set of functions that allow programmers to access specific features or data of an application, operating system, or other services.
  • 12. What is Web API? As the name implies, Web API is a web-based API that can be accessed via the HTTP protocol. It is a concept rather than a technology. We can create Web APIs using various technologies such as Java, NET, and others. Twitter's REST APIs, for example, provide programmatic access to read and write data, allowing us to integrate Twitter's capabilities into our application.
  • 14. ASP .NET Web API Web API HTTP Response Data (JSON/XML/Other Format) HTTP Request HTTP Response Data (JSON/XML/Other Format) HTTP Request HTTP Request HTTP Response Data (JSON/XML/Other Format) The ASP.NET Web API is an extensible framework for creating HTTP-based services that can be accessed in various applications on various platforms such as web, windows, mobile etc. Web Application Mobile Application Win Form Application
  • 15. ASP .NET Web API It functions similarly to an ASP.NET MVC web application, except it sends data as a response instead of an HTML view. It functions similarly to a web service or WCF service, except it only supports the HTTP protocol. Web API HTTP Response Data (JSON/XML/Other Format) HTTP Request HTTP Response Data (JSON/XML/Other Format) HTTP Request HTTP Request HTTP Response Data (JSON/XML/Other Format) Web Application Mobile Application Win Form Application
  • 17. The ASP.NET Web API platform is ideal for developing RESTful services. ASP .NET Web API Characteristics
  • 18. ASP.NET Web API is based on ASP.NET and supports the ASP.NET request/response pipeline. HTTP verbs are translated into method names by ASP.NET Web API. ASP .NET Web API Characteristics
  • 19. The ASP.NET Web API supports a variety of response data formats. JSON, XML, and BSON format support is built-in. ASP .NET Web API Characteristics
  • 20. ASP.NET Web API can be hosted in IIS, Self-hosted, or any other web server that supports.NET 4.0 or higher. ASP .NET Web API Characteristics
  • 21. To communicate with the Web API server, the ASP.NET Web API framework includes a new HTTP Client. HTTP Client can be used on the server-side of ASP, MVC, in Windows Form applications, Console applications, and other apps. ASP .NET Web API Characteristics
  • 23. ASP .NET Web API Versions Web API Version Supported .NET Framework Coincides with Supported in Web API 1.0 .NET Framework 4.0 ASP.NET MVC 4 VS 2010 Web API 2 - Current .NET Framework 4.5 ASP.NET MVC 5 VS 2012, 2013
  • 25. ASP .NET Web API vs WCF Web API WCF It is open source and comes with the.NET framework. The.NET framework is included. Only the HTTP protocol is supported. HTTP, TCP, UDP, and custom transport protocols are all supported. Http verbs to methods mapping The attributes-based programming model is used. Like ASP.NET MVC, it employs a routing and controller concept. Contracts for Service, Operation, and Data are used. It does not support Reliable Messaging or transactions. Reliable Messaging and Transactions are supported. The HTTP Configuration class can configure web APIs, but not web. Config. To configure a service, use the web. Config and attributes. It's ideal for creating RESTful services. RESTful services are supported but with limitations.
  • 26. ASP .NET Web API vs WCF If you're using.NET Framework 3.5, go with WCF. Web API does not work with.NET 3.5 or lower.
  • 27. ASP .NET Web API vs WCF If your service must support multiple protocols, such as HTTP, TCP, and Named Pipes, use WCF.
  • 28. ASP .NET Web API vs WCF Choose WCF if you want to create services that adhere to WS-* standards such as Reliable Messaging, Transactions, and Message Security.
  • 29. ASP .NET Web API vs WCF If you want to use the Request-Reply, One-Way, and Duplex message exchange patterns, go with WCF.
  • 31. When to Choose ASP .NET Web API If you are using.NET framework 4.0 or higher, select Web API.
  • 32. If you want to build a service that only supports the HTTP protocol, goes with Web API. When to Choose ASP .NET Web API
  • 33. To create RESTful HTTP-based services, use Web API. When to Choose ASP .NET Web API
  • 34. If you're familiar with ASP.NET MVC, go with Web API. When to Choose ASP .NET Web API