Top "Asp.net-web-api2" questions

ASP.

How to pass Owin context to a Repo being injected into Api controller

I've got a MVC WebApi owin (soft hosted) project, that uses Unity for resolving controller dependencies which look like this …

c# unity-container asp.net-web-api2 owin
Uploading files with flow.js + ng-flow to WebAPI 2

I'm trying to use flow.js (https://github.com/flowjs/flow.js) via its Angular wrapper (https://github.com/flowjs/…

javascript angularjs typescript asp.net-web-api2 flow-js
pass openid-connect oauth2 bearer token in header

Background I've implemented the Thinktecture.IdentityServer.V3 (the openID Connect one). I've got the OAuth2 bearer token returned to my …

javascript oauth-2.0 asp.net-web-api2 thinktecture-ident-server openid-connect
Can I change the ODataQueryOptions used for my ODataController's request?

Update vote here on User Voice to get the ambiguity addressed. I've written a OData WebAPI controller inherting from ODataController. …

c# asp.net-web-api odata asp.net-web-api2 asp.net-web-api-odata
oData v4 what are Functions and Actions in simple terms?

In oData 4.0 Actions and functions are frequently referred. I couldn't get what are they and how they are different. Are …

.net asp.net-web-api asp.net-web-api2 odata odata-v4
ASP.NET Web API Authorization tokens expiring early

I have implemented security for my web api (individual accounts) as discussed here. I have hosted the website on godaddy (…

asp.net-mvc-4 authorization asp.net-web-api2 bearer-token
binding a date in angularjs using webapi and the bootstrap date picker

Given a WebApi2 service that returns json values like this: { id: 1109, effectiveDate: "2014-10-05T00:00:00", // the date is a string (…

c# json angularjs asp.net-web-api2 asp.net-mvc-5.2
Data annotations in Swagger

I am using ASP.NET and Swagger that exposes a complex type that accepts a POST. It has a number …

asp.net-web-api2 swagger-2.0 swashbuckle
Leverage MultipleApiVersions in Swagger with attribute versioning

Is it possible to leverage MultipleApiVersions in Swagger UI / Swashbuckle when using attribute routing? Specifically, I implemented versioning by: using …

attributes asp.net-web-api2 swagger swagger-ui swashbuckle
Web Api - How to return a dynamic object with 201 status code

I'm trying to return the recently added entity Id in a Web Api action method as a JSON. Example: { bookId = 666 } …

dynamic asp.net-web-api2 expandoobject