
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 your first API and test its GET method.
Make POST, PUT, DELETE methods for our previous example, and test it by using Postman plugin
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
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
Learn differences between FromUri and FromBody
How to change name of methods such as Get(), Post(), etc.
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
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
Handle Cross domain requests by using CORS
For Https protocol we need to enable SSL
Create Login Method for Basic Authentication
Create Attribute for Basic Authentication
Use jQuery Ajax Request to test our 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
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.