Forum Discussion

TDYSmartBear's avatar
TDYSmartBear
Occasional Contributor
7 years ago

How to set Accept header to application/octet-stream with Swagger

Hi,

 

I'm trying to set Accept header to application/octet-stream with Swagger. I use the following code and notice in SoapUI Pro's request representation tab I have REQUEST = application/json and in response representation tab I have RESPONSE = application/octet-stream. However I don't see the Accept header being generated. Did I do anything wrong here?

 

@ApiOperation(produces = MediaType.APPLICATION_OCTET_STREAM, value = "")

 

2 Replies