I am using Umbraco 7.x. My task was to create a web api which returns json. I completed the task correctly. Now Issue is that need to short the url for client side.
I'm not sure what you trying to achieve is possible using Umbraco's Web API. Each API controller is dependant on being giving a name. For example, homepage in your first instance. What is the reason why you can not use the long url instead of the short one?
Routing in Umbraco Web Api
Hi Guys,
I am using Umbraco 7.x. My task was to create a web api which returns json. I completed the task correctly. Now Issue is that need to short the url for client side.
Now My Api Call is Something like this..
http://localhost:2021/Umbraco/Api/Homepage/GetHome/1233
I need to short the same to
http://localhost:2021/Umbraco/Api/1233
I googled the issue but couldn't find any help to the same. I even tried same with routing, but it was unsuccessful with UmbracoApiController
Any Kind of help to it would be appriciated.
Regards Tinku Chacko
Hi Tinku,
I'm not sure what you trying to achieve is possible using Umbraco's Web API. Each API controller is dependant on being giving a name. For example, homepage in your first instance. What is the reason why you can not use the long url instead of the short one?
Thanks, Dan.
is working on a reply...