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
{{ message }}
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.
Hello,
I am using Swagger4J to parse Swagger descriptions available on the iServe website (e.g., http://iserve.kmi.open.ac.uk/iserve/id/documents/18ee0842-f492-4f43-9073-ade556155526).
The website returns the swagger UI when "Accept: text/html" appears in the HTTP request header. Otherwise, it will return the JSON-based Swagger document when the header contains "Accept: application/json".
It looks like that Swagger4J is not able to fetch such JSON documents because in the HTTP request header contains "Accept: text/html, image/gif, image/jpeg, *; q=.2, /; q=.2".
I suppose that the header should contain "application/json" instead of "text/html". Isn't it?
Thank you very much for your help.
Cheers,
Luca
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I am using Swagger4J to parse Swagger descriptions available on the iServe website (e.g., http://iserve.kmi.open.ac.uk/iserve/id/documents/18ee0842-f492-4f43-9073-ade556155526).
The website returns the swagger UI when "Accept: text/html" appears in the HTTP request header. Otherwise, it will return the JSON-based Swagger document when the header contains "Accept: application/json".
It looks like that Swagger4J is not able to fetch such JSON documents because in the HTTP request header contains "Accept: text/html, image/gif, image/jpeg, *; q=.2, /; q=.2".
I suppose that the header should contain "application/json" instead of "text/html". Isn't it?
Thank you very much for your help.
Cheers,
Luca
The text was updated successfully, but these errors were encountered: