Questions tagged by "asp.net-web-api"


0
 bounty
2
answers
HttpContext.Current is null in the WebAPI project
10 years ago • lampego1@qrid
Environment: VS2013 .NET 4.5 WebAPI project I try to get a "MapPath" path for some dir, but in the WebAPI project "HttpContext.Current" is NULL How example: string path = HttpContext.Current.Server.MapPath("~/Some/Path"); Please. Help me!
0
 bounty
1
answers
ASP.NET Web Api - how to include API version number in the path as routing parameter
10 years ago • alex
How to include API version number v1, v2, v3, etc in the path (like .../v1/... ) and have it: being used to select proper version of Controller class carried over to Controller as a parameter (optional) HTTP Calls Here is how HTTP calls to different API versions would look like: /v1/User/SomeAction?param=zzz /v2/User/SomeAction?param=zzz .... /vNN/User/SomeAction?param=zzz Controllers Now let's take a look at the server side. In most
1 from 2