I need to write a REST
api which would send an XML
file as response.
I am confused with what MediaType
should be defined as the response.
@Produces(MediaType.APPLICATION_OCTET_STREAM)
or
@Produces(MediaType.APPLICATION_XML)
The API will be served from a GET request and I want the file to be downloaded in the client side.