Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tinku 7 posts 53 karma points
    Aug 04, 2014 @ 11:23
    Tinku
    0

    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

  • Dan Lister 416 posts 1974 karma points c-trib
    Aug 05, 2014 @ 09:17
    Dan Lister
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft