You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have swagger UI @Version v2.1.0-M2 with the Try it Out button enabled and the Response Content Type select has the available response types available.
Requesting json or xml format is great ; If I look at the network traffic it sends everything correctly
/GET myservicename.json
/GET myservicename.xml
The format extensions have nicely been appended to the service name.
HOWEVER,
If I choose text/csv I end up with an internal server error and a UI that just shows the progress dots looping.
Looking at the network traffic it shows ;
/GET myservicename.%7Bformat%7D?
Yikes that doesn't look correct.
How can I correctly give the content type the correct format to use so that I end up calling with the correct format.
i.e. /GET myservicename.csv
Thanks
The text was updated successfully, but these errors were encountered:
From what I've seen, we're only supporting .json and .xml with the {format} URL placeholder ( {format} === %7Bformat%7D when it's URI is encoded).
To support more, we'd either need to add more manually (there shouldn't be that many) or map mime types to file extensions. CSV should be quite common, so this may need to be added soon.
However we continue, at the very least if we don't support that mime-type, we should strip out the {format} part.
I have swagger UI @Version v2.1.0-M2 with the Try it Out button enabled and the Response Content Type select has the available response types available.
Requesting json or xml format is great ; If I look at the network traffic it sends everything correctly
/GET myservicename.json
/GET myservicename.xml
The format extensions have nicely been appended to the service name.
HOWEVER,
If I choose text/csv I end up with an internal server error and a UI that just shows the progress dots looping.
Looking at the network traffic it shows ;
/GET myservicename.%7Bformat%7D?
Yikes that doesn't look correct.
How can I correctly give the content type the correct format to use so that I end up calling with the correct format.
i.e. /GET myservicename.csv
Thanks
The text was updated successfully, but these errors were encountered: