WebApi Top questions

Post

New Post


Find by name:

WebApi First Name PostDate
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.
How to register exception filter globally? It is possible to register exception filter globally using following code- GlobalConfiguration.Configuration.Filters.Add(new MyTestCustomerStore.NotImplExceptionFilterAttribute());
How to unit test Web API? We can perform a Unit test using Web API tools like Fiddler. Here, are some setting to be done if you are using Fiddler –Compose Tab -> Enter Request Headers -> Enter the Request Body and execute