How to use multiple additionalQueryString

Hi Team,
I have the following code to forcefully accept json type


_type=json


But I have one rest service method which will produce @Produces(MediaType.APPLICATION_OCTET_STREAM) or PDF . While I am trying to run, It is showing “406 Not Acceptable”, If i remove the restrictions “” code is working. Can I use PDF without removing the property _type=json or can i use multiple value. Please help me in this.

Thanks
Girijanandan

How did you test it?
For example, curl command will require a request http header like Accept: */* to let the server know the client is ready to accept the different content type. [1]

curl -i -H "Accept: */*" http://localhost:8080/site/api/...

Regards,

Woonsan

[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/406