java - Jersey GET endpoint not allowing multiple GET params -



java - Jersey GET endpoint not allowing multiple GET params -

i'm having issues making bailiwick of jersey endpoint take more 1 param. here code method:

@get @path("/get/spots_data") @produces(mediatype.application_json) public string getspotsdata(@context httpservletresponse response, @queryparam("function") string function_name, @queryparam("limit") integer spot_limit) { homecoming "happy gilmore strikes again"; }

when calling endpoint curl, this:

curl -v http://localhost:9015/get/spots_data?function='whatever'&limit=40

and start debugging method, spot_limit null...any thought i'm doing wrong?

you're beingness foiled shell. quote ampersand:

curl -v http://localhost:9015/get/spots_data?function='whatever'\&limit=40

java jersey-2.0

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -