While using the slash is the standard way of doing it, you're not limited 
to it (but please do use it).

I think you can use (not sure about the + between the args)
@Path("/transfer/{arg1:[0-9]+}+{arg2}

the regexp after arg1 limits the input. It defaults to [^/]+ 
(see 
https://docs.oracle.com/cd/E19776-01/820-4867/6nga7f5n6/index.html#6nga7f5nc) 

While it is a handy trick to have up your sleeve, you should think twice 
(or more) about using it, as you will confuse people.

Groeten,

Friso

On Tuesday, December 26, 2017 at 2:47:20 PM UTC+1, Lutz Horn wrote:
>
> > @Path("/transfer/{arg1 arg2}") 
>
> It is not possible to have two path parameters like this using JAX-RS. 
>
> Try this instead: 
>
> @Path("/transfer/{arg1}/{arg2}") 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"dropwizard-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dropwizard-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to