Search code examples
asp.net-mvct4mvc

Does T4MVC support WebApi?


I'm trying to use T4MVC to create strongly typed links to WebApi endpoints, and while it does generate helpers for my ApiControllers, there's no method for creating links. The generated controllers have ViewNames, but no action methods. I guess this is because ApiController's don't return ActionResult's, but what do I need to be doing instead to create these links?


Solution

  • It is not supported today, but please check out this thread which has some good amount of discussion about it. Feel free to reply over there to add to it.