zijianhuang / webapiclientgen

Strongly Typed Client API Generators generate strongly typed client APIs in C# .NET and in TypeScript for jQuery and Angular 2+ from ASP.NET Web API and .NET Core Web API
MIT License
167 stars 38 forks source link

support multiple routes? #23

Closed zijianhuang closed 6 years ago

zijianhuang commented 6 years ago

Web API support multiple routes with multiple Attribute RouteAttribute instances. Currently if you have 2 such attributes, you will have 2 client API functions with the same name. A workaround is to defined 2 API functions with the same implementation each with different route. It seems this is good enough, if you expect clients not covered by WebApiClientGen. Also the whole purpose of WebApiClientGen is to make the route insignification to client programmers.

It seems that supporting multiple routes is a feature nice to have, but with little value?

zijianhuang commented 6 years ago

not to do anyting