asp.net web api - RoutePrefix per controller that is relative to root/global route? -
I am currently declaring the routerprofix attribute on each controller, which defines the same pre-prefix for each controller. is. I have seen an example where the rootfix is relative, but I can not reproduce it public class vehicle controller: ApiController {/ p>
What do I have:
and then be able to define the beginning of the root globally ("API / V {Version: At}" in the route registration. / P>
Is it supported?
Comments
Post a Comment