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

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -