I think you’re talking about in the browser only? Or are you talking about when calling via curl, etc?
> On Jul 21, 2016, at 1:13 PM, Arian Kuschki <[email protected]> > wrote: > > Hi, > I use swagger-inflector and swagger-codegen to create a java jersey2 app. All > my unimplemented methods are mocked by inflector and return json. But the > methods I implement return xml by default. The "@Produces" annotation seems > to be ignored. The only way to make them return json is to set the "Accept" > header with every request. > > How can I set the output format of all controller methods to json? > > Cheers, > Arian > > -- > You received this message because you are subscribed to the Google Groups > "Swagger" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
