Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swagger UI always sends JSON #24

Closed
elbrujohalcon opened this issue Oct 14, 2015 · 2 comments
Closed

swagger UI always sends JSON #24

elbrujohalcon opened this issue Oct 14, 2015 · 2 comments
Assignees
Labels

Comments

@elbrujohalcon
Copy link
Member

Regardless of what I add to the trails metadata for my endpoints, swagger always try to send contents as application/json:
swagger_ui

@harenson
Copy link
Member

@elbrujohalcon If you want to send anything to a given endpoint, you must set consumes to [""] (a list with an empty string) in the trails metadata for the given endpoint.

Example:

, consumes => [""]

screenshot from 2015-11-29 19 27 02

@elbrujohalcon
Copy link
Member Author

Thanks @harenson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants