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 } );
How can you handle errors in Web API? Several classes are available in Web API to handle errors. They are HttpError, Exception Filters, HttpResponseException, and Registering Exception Filters.
What New Features comes with ASP.NET Web API 2.0? Attribute Routing, Cross-Origin Resource Sharing, External Authentication, Open Web Interface NET, HttpActionResult, Web API OData,