I have a POST API as below:
@POST
@Path("/api/analysis/s3file/{filename}")
@Produces("application/json")
public Response analysis(@PathParam("filename") String filename, @RequestParam(value = "errorDesc", required = false, defaultValue ="true") String errorDesc) ()
However i am unable to fetch the request param 'errorDesc' when i invoke this API like http://localhost:8080/MyApp/api/analysis/s3file/abc.zip?errorDesc=true.
When i print the value of the string errorDesc, i see that its being the value of the request payload (eg: ------WebKitFormBoundaryEu2iBOEbKojgV3wO--)
Could someone help me resolve the issue. I had checked related questions but was unable to identify the issue.