swagger-server
swagger-server copied to clipboard
Supported MIME types - Is application/xml supported?
Hello there, I am trying to get mock response in XML format.
- I have specified consumes and produces to -application/xml at top of yaml file.
- Request includes content-type and accepts in header as application/xml.
However i get response in JSON format. I am seeing following message in console. WARNING! GET /cars produces the MIME types that are not supported (application/xml). Using "json" instead
This seems to be an issues of swagger-express-middleware. Arrays and objects are always sent as JSON.
Yeah, this is a big item on the "to-do" list for Swagger Express Middleware. I just don't have the time to implement it right now. Busy as hell at work :(