There are some known issues regarding that. Try the latest master version of swagger-ui.
From: <swagger-swaggersocket@googlegroups.com> on behalf of Natalia Queiroz <queiroz.n...@gmail.com> Reply-To: "swagger-swaggersocket@googlegroups.com" <swagger-swaggersocket@googlegroups.com> Date: Friday, 15 July 2016 at 15:48 To: "swagger-swaggersocket@googlegroups.com" <swagger-swaggersocket@googlegroups.com> Subject: curl -X *method* --header 'Accept: application/json' not working Hello group, my json application is not showing the correct Accept response on the curl method. Even using the header("Content-Type: application/json;charset=utf-8") or , header("Content-Type: application/json"), it keeps showing curl -X GET --header 'Accept: text/html' 'http://servicos.jbrj.gov.br/jabot/collections' Does anybody know if is it a bug? or how to fix it? Thanks, -- Natália Oliveira -- 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 swagger-swaggersocket+unsubscr...@googlegroups.com. For more options, visit 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 swagger-swaggersocket+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.