Forum Discussion
josebrwn
9 years agoNew 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!
- RonRatovsky9 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
- 31 days ago