Last post May 28, 2014 12:35 PM by Rion Williams
May 28, 2014 12:23 PM|gaddamraju4u|LINK
Hi i amm new to asp.net
my question is
1. what is difference between web api and http ?
i heard both are having methods to provide data then
both are same are differnce ? tell me the differnces
May 28, 2014 12:35 PM|Rion Williams|LINK
What is HTTP?
HTTP stands for Hypertext Transfer Protocol and it is how all data across the web is transmitted. It defines how pages communicate with one another (through GET, POST, PUT and DELETE requests) and defines the concept of Request / Response when a
user attempts to access a page.
HTTP services are likely what you are referring to. These define specific methods that are used to communicate different types of actions across HTTP and depending on the type of action defined (GET, POST, PUT, DELETE) the responding party will
handle the data that is transmitted accordingly.
What is Web API?
ASP.NET Web API is a development environment aimed at developing RESTful Web Services that will allow your application to easily send and recieve HTTP Requests (web requests)
and perform operations based on the types of Requests that are made to it (such as providing information about a user if provided their ID etc.)
Web API allows you to construct a Web Services that will expose different types of methods and allow users to perform these actions. You can define various methods for your API that will do different things based on the request that was sent to it (for
example a GET request that targets your API might return a collection of values but a POST might actually indicate that you need to update a specific value that was passed in).
Web API is just a system of web services that are based on the HTTP protocols and it allows you to define a Web Services that is specifically designed to deal with the Web. Without HTTP, Web API really could not exist as it is based upon it.