It's all about the answers!

Ask a question

Could I use tools to test RQM's REST API ?


dennys hsieh (291219) | asked Sep 04 '14, 2:12 a.m.
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


permanent link
Donald Nong (14.3k213) | answered Sep 04 '14, 8:36 p.m.
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.
dennys hsieh selected this answer as the correct answer

Comments
dennys hsieh commented Sep 04 '14, 9:52 p.m.

After login again (the original session is expired), I can use Chrome's plugin to test the API, thanks.

2 other answers



permanent link
Paul Slauenwhite (8.3k12) | answered Sep 04 '14, 7:37 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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.

permanent link
Corey Jacobs (641733) | answered Sep 04 '14, 6:57 p.m.
Another alternative is RQM URL Utility

https://jazz.net/wiki/bin/view/Main/RQMURLUtility

Your answer


Register or to post your answer.