ASP.NET Web API is a service which can be accessed over the HTTP by any client. So, providing security to the Web API is very important, which can be easily done with the process called Token based authentication .
Read moreWhat is Basic Authentication in Web API?
In Basic Authentication, the user passes their credentials [user name and password] on a post request . At the WebAPI end, credentials are verified. If the credentials are valid, then a session will initiate to accept the subsequent requests without validating the user again.
Read moreHow do I access Web API?
You can use any HTTP client to invoke your web API . In fact, you can invoke it directly from a web browser. In Visual Studio, start your application in debugging mode. Visual Studio will automatically open a web browser window with URL that points to http://localhost<portnumber>.
Read more