Closed krassowski closed 6 years ago
Duplicates #55
Though it is not a duplicate of #55 (I insist), I agree that manually escaping space in the URL resolves the problem.
It does not change the fact that if the recommended REST API tool provides me with a curl command I would just expect it to work, not do manual escaping on the produced line - I still think that it is a bug and should be fixed somehow, as it wastes time of people trying to automate their Cytoscape workflow.
This worked for me fine:
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{}' 'http://localhost:1234/v1/commands/network/create%20empty'
Anyway, thank you for your response and contribution. I hope the best for this project.
I agree that this is problematic; this is an issue with Swagger UI, which generates the documentation for us. I can confirm that the version we're using treats curl this way, and that the current version they have on their demo site does as well.
I'll make an issue with them, and link to it from here.
I created an issue with Swagger UI: https://github.com/swagger-api/swagger-ui/issues/4263
We'll eventually be upgrading to Swagger UI 3, once some outstanding issues have been resolved on their end.
and I have no idea why. Could you help me?
This works fine:
It returns:
But this does not:
Here is the verbose output: