locked
Ambiguous URI Template RRS feed

  • Question

  • Hello,

    I have a serviceroute going to for example /api/tickets

    I want to then have 2 get operations

    tickets/summary

    tickets/{ticketId}

    However due to the limitation in that the URItemplate parameters have to be string I can't seem to get a route to the summary operation - as  /api/summary the 'summary' part must be thinking it's the {ticketId}.

    Any way i can have both of these? (i know i can upgrade to webapi, or change to querystring param - i'm looking for a way where i can keep above uri's.

    Thanks,

    Simon

    Thursday, May 29, 2014 1:38 AM

Answers

  • Hi,

    I know that you want to have the two following get operations:

    tickets/summary

    tickets/{ticketId}

    Then as you said the 'summary' part in the tickets/summary must be thinking as the {ticketId}, so in my mind you can not use them in one service. Then please try to modify one of the them, for example the tickets/summary can be tickets1/summary. Or you can use the tickets/{ticketId} as tickets/ticketId={ticketId}.

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, May 30, 2014 3:22 AM