WebApi Top questions

Post

New Post


Find by name:

WebApi First Name PostDate
Give me one example of Web API Routing? Config.Routes.MapHttpRoute( name: "MyRoute,"//route name routeTemplate: "api/{controller}/{action}/{id}",//as you can see "API" is at the beginning. defaults: new { id = RouteParameter.Optional } );
Explain what is REST and RESTFUL? REST represents REpresentational State Transfer; it is entirely a new aspect of writing a web app. RESTFUL: It is term written by applying REST architectural concepts is called RESTful services. It focuses on system resources and how the state of the resource should be transported over HTTP protocol.
Compare Web API and WCF? WCF offers request-reply, one-way, or duplex while Web API is by default request-reply only. WCF is used for developing SOAP-based services whereas Web API is used for both SOAP-based and RESTful services. WCF does not offer any support for MVC features whereas Web API supports MVC features. WCF supports HTTP, UDP, and custom transport protocol whereas Web API supports only HTTP protocol. WCF offers Text, MTOM, and Binary Encoding support whereas Web API supports the UTF-8 encoding format. WCF supports message queues, message security, duplex communication, transaction whereas Web API doesn’t support. WCF stands for Windows Communication Foundation whereas API stands for Application Program Interface.