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
Post a Comment