Posts

Showing posts from July, 2023

web Api Advance interview questions and answers

Image
14. What are Web API filters? Filters are basically used to add extra logic at different levels of Web API framework request processing.  Different types of Web API filters are available as given below: Authentication Filter:  It handles authentication and authenticates HTTP requests. It also helps to authenticate user detail. It checks the identity of the user. Authorization Filter:  It handles authorization. It runs before controller action. This filter is used to check whether or not a user is authenticated. If the user is not authenticated, then it returns an HTTP status code 401 without invoking the action. AuthorizeAttribute  is a built-in authorization filter provided by Web API. Action Filter : It is attributing that one can apply to controller action or entire controller. It is used to add extra logic before or after controller action executes. It is s...