-
1. Re: SwitchYard RESTEasy Binding with multiple Get Parameters (Strings)
mageshbk Dec 24, 2012 4:13 AM (in response to yusufb)Hi Yusuf,
Your understanding is correct. We are planning to add support for multiple parameters in the future, if there is a pressing need to do so.
-
2. Re: SwitchYard RESTEasy Binding with multiple Get Parameters (Strings)
jespersorensen Feb 12, 2013 7:48 AM (in response to mageshbk)Hi,
in the meantime, is there another way of doing this?
I have a RESTful service structured like this:
/{environment}/{resource}
which would typically map to something like this in JAX-RS:
@Path("{environment}/{resource}")
public ResponseClass getResource(@PathParam("environment") String environment, @PathParam("resource") String resource) throws Exception;
This is not doable in SwitchYard.
Would the solution be to use a wrapper object as the request payload and store the parameters there?
-
3. Re: SwitchYard RESTEasy Binding with multiple Get Parameters (Strings)
kcbabo Feb 12, 2013 8:50 AM (in response to jespersorensen)The bottom line at this point is that you can only have a single parameter in your JAX-RS interface. That said, we definitely need to support multiple parameters on the JAX-RS interface, since that's a common enough implementation practice. I will note that this is distinct from supporting multiple parameters on SY interfaces, which is not necessary for this to work. I have filed the following JIRA to track this:
https://issues.jboss.org/browse/SWITCHYARD-1307
To summarize what's in the JIRA, you should be able to use multiple parameters in the JAX-RS inteface and then use a custom message composer to handle the assembly of those individual parameters into a single object (e.g. a "wrapper" object).
-
4. Re: SwitchYard RESTEasy Binding with multiple Get Parameters (Strings)
rory8000 Apr 22, 2015 12:29 PM (in response to yusufb)Hi,anybody has resolve this issue on SY?
The url form /{environment}/{resource}??
Thanks in advance
-
5. Re: SwitchYard RESTEasy Binding with multiple Get Parameters (Strings)
mageshbk Apr 28, 2015 11:11 AM (in response to rory8000)Hi Rory,
It is fixed. Have you seen the rest-binding sample here:
quickstarts/WarehouseResource.java at master · jboss-switchyard/quickstarts · GitHub