ASP.NET Web API is a framework for building HTTP services that can be accessed from any client including browsers and mobile devices. It is an ideal platform for building RESTful applications on the .NET Framework. However it can also use to create non RESTful services.
It works more or less the same way as ASP.NET MVC web application except that it sends data as a response instead of html view.
ASP.Net web API became very popular because of it’s a very easy to implement RESTful api with less amount of time.
Through this series we will learn how to handle Http Methods, Content Negotiation, Media Type Formatters, Authentication, and Versioning of API.
Along with this we will also see how to send request from jQuery Ajax and a postman app.
We will learn all above things through this video series. If you have any doubts then you can contact me via mail and Q & A.
Learn about what is APS.Net web API and It's Architecture, what is RESTful and diffrence between WCF and web API.
Before we start with Web API lets understood what are HTTP Methods, HTTP Status, and difference between JSON & XML
Make POST, PUT, DELETE methods for our previous example, and test it by using Postman plugin
Quiz for Introduction to ASP.Net Web API 2
Implement HTTP GET method for retriving data from SQL server
Implement HTTP POST method for creating/add new data to SQL server
Implement HTTP PUT method for updating data into SQL srver
Implement HTTP DELETE method for delete data from SQL server
Quiz for Using SQL Server with Web API
Understood about how to pass data using query string in web API.
Setting up content type for Response
Manage Media type formatters for Web API
How to change name of methods such as Get(), Post(), etc.
Quiz for Basic Modifications
Setting up Attribute Routing for Web API over conventional based routing
Use RoutePrefix attribute to remove repeat URI in Attribute Routing
Use route constrains based on Value and type
Use Route Names for generating URLs
Quiz for Routing for API
Use IHttpActionResult over HttpResponseMessage in api 2
Use jQuery AJAX request for testing our web API
Understood what is cross domain & How to handle cross domain request by using JSONP
For Https protocol we need to enable SSL
Quiz on Advance Modifications
Create Login Method for Basic Authentication
Create Attribute for Basic Authentication
Use jQuery Ajax Request to test our Basic Authentication
Quiz on Basic Authentication
Understood what is versioning and how to implement it by using URI
Implement versioning by using Query String, for that we need to create custom controller selector.
Implement Versioning by using Custom Headers
Download Presentation file for web api 2 & visit official docs
Hello I am Nilay Mehta, a software engineer with extensive experience and management skills and works on latest technology.
I love to working with new technologies. Feel free to contact me if you have any doubts.
Works as Web Developer & Designer since last 3 years.
Languages: ASP.Net, C#, PHP
Frameworks: CodeIgnitor, jQuery, Bootstrap, AngularJS, ExtJs
Mobile Computing: Windows Store App, Apache Cordova
Database: MS SQL Server, MySQL, ORACLE
Other: HTML5, CSS3, JSON, XML, Ajax