Forum Discussion
josebrwn
New Contributor
I am having a similar issue. My curl always looks like this:
curl -X GET --header 'Accept: text/html'
when what I need is this:
curl -X GET --header 'Accept: application/json'
Isn't there a simple way to do this? I tried the solution above, to no avail, adding both:
produces: - 'application/json'
and under parameters:
- name: "Accept" in: header type: string default: "application/json" description: application/json is currently supported
Any help appreciated!
RonRatovsky
9 years agoStaff
We have a known bug with the curl command generation and working on a fix for it. The try it out functionality should work as expected though.
Related Content
- 5 years ago
Recent Discussions
- 12 days ago
- 12 days ago
- 16 days ago