Solved
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
8 years agoModerator
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
- 12 months agolokwk216
- 4 years agojodydowling
Recent Discussions
- 8 days agokj20nt
- 16 days agoprogrammer_j