Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger example contains \n which translates to \ in the curl output, breaking the command #1622

Open
mrvanes opened this issue Oct 2, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mrvanes
Copy link
Contributor

mrvanes commented Oct 2, 2024

The post_api_collaborations_v1 Swagger example contains the description "Cumulus research group of the University of Harderwijk. Members can collaborate in the connected cloud service and contact eachother by email.\n" which looses the last n in the curl command, resulting in a double backslash \\ before the closing quote " of the description, rendering the command broken, because the first backslash escapes the second.

curl -X POST "https://sbs.scz-vm.net/api/collaborations/v1" -H "accept: application/json" -H "Authorization: Bearer ***" -H "Content-Type: application/json" -d "{ \"name\": \"Cumulus research group\", \"short_name\": \"cumulusgrp\", \"description\": \"Cumulus research group of the University of Harderwijk. Members can collaborate in the connected cloud service and contact eachother by email.\\", \"website_url\": \"https://research.uniharderwijk.nl/cumulusgrp\", \"disable_join_requests\": true, \"disclose_member_information\": true, \"disclose_email_information\": true, \"expiry_date\": 1644015600, \"logo\": \"https://i.pickadummy.com/600x400\", \"message\": \"Please join the Cumulus research group collaboration page.\", \"administrator\": \"[email protected]\", \"administrators\": [ \"[email protected]\" ], \"tags\": [ \"label_test\" ], \"units\": [ \"fac_wiskunde\" ]}"
@FlorisFokkinga FlorisFokkinga added the bug Something isn't working label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

3 participants