Could I use tools to test RQM's REST API ?
I use soapUI and Chrome's plugin Advanced REST client to test RQM's REST API and input this URL
https://jazz/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/test1/testcase/urn:com.ibm.rqm:testcase:1
It shows return code 200, but I cannot see the detail test case data. I think it's due to I didn't input the username/password, but I'm not sure how to do it. Is there any document for it?
I find https://jazz.net/library/article/1376, but I don't understand how to implement "4. Authenticating RQM Server" section...
Accepted answer
If you got an HTTP 200 return code, the server must have already returned some content to the client. Did you actually get redirected to the login page (in this case there will be a "redirect" section above the "status" section in Advanced Rest Client)? If true, you need to log on first. The easiest way to do it is log on normally in the web UI using the same browser. This works with Chrome/Firefox along with their respective REST clients.
If you need to do scripting later on, for example using Perl, you do need to spend time to study the HTTP return code and how contents are sent to and returned from the server, along with the authentication method mentioned in the jazz.net article. The browser actually does quite a few things behind the scene when you use a REST client plugin, such as handling cookies, but with scripting, you need to do everything yourself.
If you need to do scripting later on, for example using Perl, you do need to spend time to study the HTTP return code and how contents are sent to and returned from the server, along with the authentication method mentioned in the jazz.net article. The browser actually does quite a few things behind the scene when you use a REST client plugin, such as handling cookies, but with scripting, you need to do everything yourself.
2 other answers
See RQM Reportable REST API. I would suggest using the Poster or HTTP Requester plug-ins for Firefox. When using one of these plug-ins, you simply have to log into RQM using Firefox to authenticate your REST API requests.