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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -