Top "Asp.net-web-api2" questions

ASP.

Creating new IHttpActionResult action result methods

Is there a way I can use the new IHttpActionResult interface to return a HttpStatusCode.NoContent response message? I am …

c# asp.net-web-api2
Load JSON string to HttpRequestMessage

I'm writing some tests for my WebAPI web service and cannot figure out how to send JSON to my service …

c# json unit-testing asp.net-web-api2
Unable to obtain configuration from well-known/openid-configuration

I am using ASP.NET 5, In my solution I have Web API, Identity Server and Angular 2 project and I am …

angular asp.net-core asp.net-web-api2 asp.net-core-mvc identityserver3
Why can't navigate to web api controller

I use Web API for the first time to connect my mobile app to Web API. I have MVC 5 project …

asp.net-mvc asp.net-web-api asp.net-web-api2 asp.net-web-api-routing
Enable CORS for Web Api 2 and OWIN token authentication

I have an ASP.NET MVC 5 webproject (localhost:81) that calls functions from my WebApi 2 project (localhost:82) using Knockoutjs, to make …

asp.net-web-api asp.net-mvc-5 cors asp.net-web-api2 owin
Registering Web API 2 external logins from multiple API clients with OWIN Identity

I would like the following architecture (I've made up the product name for this example): Web API 2 application running on …

asp.net-mvc oauth-2.0 asp.net-identity owin asp.net-web-api2
ASP.NET Identity "Role-based" Claims

I understand that I can use claims to make statements about a user: var claims = new List<Claim>(); …

c# asp.net-web-api2 asp.net-identity claims-based-identity asp.net-authentication
404 Not Found or Bad Request?

Let's say that we have the following REST call: GET api/companies/5 (get company with id 5) If company '5' …

rest asp.net-web-api http-status-code-404 asp.net-web-api2 api-design
ASP.NET WebAPI default landing page

I've created a RESTful web service using ASP.NET WebApi v2 and I'm using Swashbuckle to generate swagger UI for …

asp.net asp.net-mvc asp.net-web-api asp.net-web-api2
Apply [Authorize] attribute implicitly to all Web API controllers

My application is setup where all requests except login must be 'authorized' using the authorization attribute in Web API. E.…

c# .net asp.net-web-api asp.net-web-api2