Top "Asp.net-web-api2" questions

ASP.

Can't get error message on BadRequest in Web Api 2

I've googled a lot searching for an answer to my problem with no luck so, let's try if someone else …

c# error-handling asp.net-web-api2 response bad-request
Simplest way to add Basic authentication to web.config with user/pass

I'm setting up an Azure API Management with with an ASP.NET WebApi 2 app behind it. API Management recommends setting …

authentication iis web-config asp.net-web-api2 azure-api-management
Return user roles from bearer token of Web API

I am developing a Web API 2 project. For authentication I am using bearer token. On successful authentication the API returns …

asp.net authentication asp.net-web-api2 bearer-token
How do you generate a Bearer token to call a remote Web API

I have two sites, a site that users login to and manage their account and site that has no UI …

owin asp.net-web-api2 asp.net-identity-2 bearer-token
proper implementation of "windows" authentication in web api?

I've created a Web Api 2 app which will only be used on the corporate network. I've read about Windows authentication …

c# .net asp.net-web-api asp.net-web-api2 windows-authentication
How to configure Web API 2 and Structure Map

I've trawled through multiple blogs etc trying to find out how to configure StructureMap with Web API 2 and none of …

asp.net-web-api structuremap asp.net-web-api2
Getting latest Ninject working with latest MVC 5 / Web Api 2?

I know there are several questions a bit like this one, but as I'm unable to locate any documentation and …

c# ninject asp.net-web-api2 asp.net-mvc-5.1
Returning IHttpActionResult vs IEnumerable<Item> vs IQueryable<Item>

In ASP.NET Web API 2, what is the difference among the following? public async Task<IEnumerable<MyItem>&…

c# asp.net asp.net-web-api async-await asp.net-web-api2
OData V4 modify $filter on server side

I would like to be able to modify the filter inside the controller and then return the data based on …

asp.net-web-api entity-framework-6 odata asp.net-web-api2
How to send a list of integers to web api 2 get request?

I am trying to accomplish this task in which I need to send a list of id's (integers) to a …

c# asp.net-web-api2 get-request