slovely / TypeScriptDefinitionsGenerator

Generate TypeScript .d.ts files for your server classes, plus optionally create client-side interfaces for WebAPI / SignalR server implementations
MIT License
10 stars 1 forks source link

Support WebAPI methods using default route mapping #2

Open slovely opened 8 years ago

slovely commented 8 years ago

Currently the actions.ts file will generate methods as if the route template is in the older MVC style: routeTemplate: "api/{controller}/{action}/{id}". However, the default route template in WebAPI is now routeTemplate: "api/{controller}/{id}" so we should optionally support that.

How to go about determining this is more difficult!