We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The Swagger UI lists the available "Response Content Type" as a drop down of media types, like application/json or 'text/xml`
application/json
The list of supported media types in WebAPI should be queried via something like:
HttpConfiguration configuration; List<string> list = new List<string>(); foreach(var formatter in configuration.Formatters) { foreach(var mediaType in formatter.SupportedMediaTypes) { list.Add(mediaType.MediaType); } } list.Sort(); return list;
In theory, this list could be used for both the consumes and produces properties of an API.
consumes
produces
See more:
The text was updated successfully, but these errors were encountered:
steve-jansen
No branches or pull requests
The Swagger UI lists the available "Response Content Type" as a drop down of media types, like
application/json
or 'text/xml`The list of supported media types in WebAPI should be queried via something like:
In theory, this list could be used for both the
consumes
andproduces
properties of an API.See more:
The text was updated successfully, but these errors were encountered: