help/api curl example for windows works wrong for 'query' params (OD-1939)
Open
sokharev opened 2 months ago

Restful help/api page for builds query have curl example like this

 curl -u <login name>:<password or access token> -G https://xx.xx.xx.xx/~api/builds --data-urlencode 'query="Job" is "Release"' --data-urlencode offset=0 --data-urlencode count=100

and this indeed works for linux, but windows doesn't eat '(apostrophe) sign , so actual curl example becames

 curl -u <login name>:<password or access token> -G https://xx.xx.xx.xx/~api/builds --data-urlencode "query=""Job"" is ""Release""" --data-urlencode offset=0 --data-urlencode count=100

(or inner " must be terminated with \" which is uglier )

otherwise response will be 'unexpected query params : ['query] . I know this is 'windows/platform specific' but maybe any comments or second line for windows will be good, or maybe someone will search this issue too.

issue 1 of 1
Type
Improvement
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-1939
Please wait...
Page is in error, reload to recover