Problems with RESTAPI GET request
- 4 years ago
OK, I think the problem is that you're mixing up two styles of GET calls for testcases. You only need to provide the project key if you want to return ALL test cases for a project. In that scenario you shouldn't provide a testcase key.
For your scenario you want to return details about a single testcase and for that, you only need to provide the testcase key... so oddly enough, my first reply is probably right and this should work, although I can't test: https://campbellscientific.atlassian.net/rest/atm/1.0/testcase/I2-T2
Let me know how it goes?
------
Ignore this. I've just seen that project key is needed in the Cloud API and that must be what you're using. I'll take a look and see if I can spot anything to help.
------
Hi,
According to the API, you don't need to provide the project key. You only need the testcase key.
Here's an example of a working GET call for me - I'm on the Server version of Zephyr Scale so it might be why ours look different:
https://jira.xxxx.com/rest/atm/1.0/testcase/xxxx
That would mean that your call would look like this:
https://campbellscientific.atlassian.net/rest/atm/1.0/testcase/I2-T2
Does that work?