Closed krassowski closed 6 years ago
Try replacing your spaces with %20
Spaces are usually handled automatically within web browsers, but not so in the console.
I can confirm the following works on my setup:
curl -X POST --header 'Content-Type: applicaion/json' --header 'Accept: application/json' -d '{}' 'http://localhost:3334/v1/commands/network/create%20empty'
I am sorry but I think that you are wrong. It's not a space or curl issue - no duplicates here ;)
Please have a look at my recording (25 sec):
Also your confirmation shows curl with application/json
, not with application/xml
.
Jumping in here ... @krassowski: Thanks for all of your excellent help. We are getting lots of valuable feedback.
Barry Demchak -- from my mobile phone
On Feb 27, 2018 11:43 AM, "krassowski" notifications@github.com wrote:
I am sorry but I think that you are wrong. It's not a space or curl issue - no duplicates here ;)
Please have a look at my recording (25 sec): [image: ezgif-2-1936c52ce1] https://user-images.githubusercontent.com/5832902/36744749-daedebf8-1bed-11e8-9133-09838d14e541.gif
Also your confirmation shows curl with application/json, not with application/xml.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cytoscape/cyREST/issues/55#issuecomment-368963760, or mute the thread https://github.com/notifications/unsubscribe-auth/ADhl3m1xF0xreMKxOz-tZQwv-zG9F2E4ks5tZD7CgaJpZM4SUtxL .
Ah, I missed the detail of 'Content-Type: application/xml' specification. Thanks for being insistent. I'll take a look and see if I can disable xml content type for the Swagger documentation.
Addressed in 87063b3da36097b82025eec0049676bb86794966
Awaiting release.
Here is the generated curl command:
And here is the error:
It works fine with "application/json".