use curl for rest api
curl -u username:password -X GET -H"Content-Type: application/json" restapi address
example :
curl -u username:password -X GET -H"Content-Type: application/json" http://coli51.qad.com/rest/api/latest/issue/->?search\&fields=issuetype,status
Running this command may show operating log, add parameter ‘-s‘ can make it silent
example:
curl -s -u username:password -X GET -H"Content-Type: application/json" http://coli51.qad.com/rest/api/latest/issue/->?search\&fields=issuetype,status
for detailed manpage http://curl.haxx.se/docs/manpage.html
时间: 2024-10-11 09:30:32