Top "Asp.net-web-api2" questions

ASP.

Swashbuckle Swagger - How to annotate content types?

How do I annotate my ASP.NET WebAPI actions so that the swagger metadata includes the content-types that my resources …

asp.net-web-api2 swagger-2.0 swashbuckle
Web API 2 - Implementing a PATCH

I currently have a Web API that implements a RESTFul API. The model for my API looks like this: public …

c# json asp.net-mvc rest asp.net-web-api2
Want to understand async

I've used async coding a little bit but I don't really fully understand how to use it -- though I …

c# async-await asp.net-web-api2 azure-cosmosdb
CORS on OWIN and accessing /token causes 'Access-Control-Allow-Origin' error

I am having trouble with securing my Web API using owin middle ware. I have installed below package Install-Package Microsoft.…

cors asp.net-web-api2
Newtonsoft JSON dynamic property name

Is there a way to change name of Data property during serialization, so I can reuse this class in my …

c# json json.net asp.net-web-api2
Return an object along with a 409 Conflict error in a Web API 2 POST call backed by Entity Framework?

I have a C# Entity Framework Web API 2 controller. Currently when an attempt is made via the POST method to …

c# asp.net-mvc entity-framework-6 asp.net-web-api2
Dependency injection not working with Owin self-hosted Web Api 2 and Autofac

I'm finding my feet with Web Api 2, Owin and Autofac and need some guidance, please. Overview I have an Owin …

c# autofac owin asp.net-web-api2
How to get Access Token from ASP.Net Web API 2 via AngularJS $http?

I try like this: $http({ method: 'POST', url: '/token', data: { username: $scope.username, password: $scope.password, grant_type: 'password' } }).…

javascript jquery angularjs asp.net-web-api asp.net-web-api2
IIS Compilation Error -2146232576 AspNetInitializationExceptionModule

I have a fairly simple C# WebAPI2 project that runs locally but after publishing to IIS on a remote machine (…

c# asp.net-web-api2 iis-8
Global exception handling in OWIN middleware

I'm trying to create a unified error handling/reporting in ASP.NET Web API 2.1 Project built on top of OWIN …

asp.net-web-api asp.net-web-api2 owin katana owin-middleware