Forum Discussion

SiKing's avatar
SiKing
Community Expert
12 years ago

[Resolved] REST JAX-RS template parameters

RESTful parameters generated by JAX-RS are not fully supported. Here is the JAX-RS reference: http://jsr311.java.net/nonav/releases/1 ... /Path.html

This is a cut of my WADL:
<resource path="/{gameCode}/issues/{issueId:[0-9]+}">
<param name="gameCode" style="template" type="xs:string"/>
<param name="issueId" style="template" type="xs:int"/>
<method id="getGameIssue" name="GET">
<response>
<representation element="lotteryGameIssueDTO" mediaType="application/json"/>
</response>
</method>
</resource>

However, SoapUI cannot match up the issueId param with {issueId:[0-9]+} in the URL.
  • SiKing's avatar
    SiKing
    Community Expert
    The WADL is machine generated and it is correct!
    The problem is on the SoapUI end in interpreting this syntax.
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi

    I am unable to find anything about the colon and regexp in the WADL specification so I don't think this should be treated as a bug. If you want we can always take this in as a feature request.

    Regards
    Joel Jonsson
    SmartBear Sweden
  • SiKing's avatar
    SiKing
    Community Expert
    I don't think you will find this in the spec.
    Yes, please do file this as a feature request.
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    Thanks for the suggestion, I have added this to our backlog for prioritization (SOAP-1022).

    Regards,
    Anders
    SmartBear Sweden