Any way to generate a C# HTTPClient wrapper for a WebAPI project?

This is the best representation of what I was looking for:

ASP.NET Web API <#= Proxy to T4 #>

Introducing WebApiProxy: Providing JavaScript & C# proxies with Intellisense including documentation for ASP.NET Web API

He put his example code up on github:

https://github.com/RestCode/WebApiProxy

Hope this might come out in an official way later.


I am currently working on an open-source Swagger toolchain for .NET. With these tools you can select a Web API controller from an existing DLL and generate a Swagger specification or client code for C# and TypeScript. Using T4 templates in Visual Studio the generation process works like WCF Service References.

Have a look here: http://NSwag.org

enter image description here