Hello,

I am trying to implement http request in tutorial that would pass multiple
integer arguments


 @GET

    @Path("/transfer/{arg1 arg2}")

    public String Transfer1(@PathParam("arg1") Integer arg1,

    @PathParam("arg2") Integer arg2) {

//do some calc with arg1 and arg2

    return "OK";



    }


I have runtime exception:

java.lang.IllegalArgumentException: Illegal character "a" at position 16 is
not allowed after a name in a path template "/transfer/{arg1 arg2}"


What's the proper syntax to separate arguments? Can I pass primitives (int)
vs Integer in the request?

Thanks,

V

-- 
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