A problem about projectAlias when using RQM REST API
Hi,
I'm trying to list all the testcases in a project through the RQM REST API. I referred to
https://www-304.ibm.com/support/docview.wss?uid=swg21473152
and tried to input "https://server:port/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/projectalias/testcase" in my browser.
But I got HTTP 400 error with description "The request sent by the client was syntactically incorrect ()."
I doubt the problem is related with the projectAlias, since it worked well when I input "https://server:port/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/projects". The project name is in the form of "ABC+ DE FG", and from the above link, the alias of it is "ABC%2B+DE+FG". I replaced the "projectalias" field in the link, but it didn't work. I also tried with "ABC%2B%2BDE%2BFG" and failed too.
Does anyone know about this problem? Thanks!
I'm trying to list all the testcases in a project through the RQM REST API. I referred to
https://www-304.ibm.com/support/docview.wss?uid=swg21473152
and tried to input "https://server:port/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/projectalias/testcase" in my browser.
But I got HTTP 400 error with description "The request sent by the client was syntactically incorrect ()."
I doubt the problem is related with the projectAlias, since it worked well when I input "https://server:port/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/projects". The project name is in the form of "ABC+ DE FG", and from the above link, the alias of it is "ABC%2B+DE+FG". I replaced the "projectalias" field in the link, but it didn't work. I also tried with "ABC%2B%2BDE%2BFG" and failed too.
Does anyone know about this problem? Thanks!
4 answers
A couple of comments:
-See https://jazz.net/wiki/bin/view/Main/RqmApis.
-Try using Poster (https://jazz.net/wiki/bin/view/Main/RQMUsingPoster) with the correct headers (https://jazz.net/wiki/bin/view/Main/RqmApi#Headers), which does not require URL encoding.
-A project alias is a generated unique identifier based on the URL encoded form of a project's initial name.
-Try the following project area alias:
ABC%2B%20DE%20FG
-See https://jazz.net/wiki/bin/view/Main/RqmApis.
-Try using Poster (https://jazz.net/wiki/bin/view/Main/RQMUsingPoster) with the correct headers (https://jazz.net/wiki/bin/view/Main/RqmApi#Headers), which does not require URL encoding.
-A project alias is a generated unique identifier based on the URL encoded form of a project's initial name.
-Try the following project area alias:
ABC%2B%20DE%20FG
A couple of comments:
-See https://jazz.net/wiki/bin/view/Main/RqmApis.
-Try using Poster (https://jazz.net/wiki/bin/view/Main/RQMUsingPoster) with the correct headers (https://jazz.net/wiki/bin/view/Main/RqmApi#Headers), which does not require URL encoding.
-A project alias is a generated unique identifier based on the URL encoded form of a project's initial name.
-Try the following project area alias:
ABC%2B%20DE%20FG
Thank you Paul. But I still cannot get it done. I have tried with the alias you suggested, and with Poster. I checked the URL and am sure it comply with the rules of RqmApi.
Does anyone has the convenience to do a quick experiment with similar project name?