Can anybody list out the difference between WebAPI and OData Controllers?
- 1Really good answer can be found here: stackoverflow.com/questions/17949201/…ProxyTech– ProxyTech2014-01-24 09:31:33 +00:00Commented Jan 24, 2014 at 9:31
- check this answer stackoverflow.com/questions/2458407/…Teoman shipahi– Teoman shipahi2015-06-03 15:22:35 +00:00Commented Jun 3, 2015 at 15:22
Add a comment |
1 Answer
WebApi is an application type (maybe a framework) used to facilitate the applications intercommunications between different platforms (web, mobile, windows). OData is a communication protocol supported by the WebApi infraesctructure. The OData's goal is to provide an uniform way to create CRUD (create, retrieve, update and delete) operations.
In WebApi you are kinda limited to the HTTP verbs (GET, PUT, DELETE, POST) and the OData (ODataController) adds new endpoints to facilitate the datasets manipulation.