Ask a Question

Are the Zephyr apairy api docs broken or out of date?

ssatelle
New Contributor

Are the Zephyr apairy api docs broken or out of date?

I'm using https://zephyrenterprisev3.docs.apiary.io/#reference/testcase/get-testcases-by-tree-ids/get-testcase...

 

when I try to GET :

 

{{Zephyr_Base_URL}}/testcase/nodes?treeids=139397

 

(the base url is my server url up the /latest slug )

 

I get a 415 unsupported media type. 

 


I know the treeid is correct, both from clicking into the folder in the browser and seeing <snip>/flex/html5/tcr/25870;treeId=139397;testcaseId=2<snip> and from using the Get Project Repository Testcase Tree by projectid endpoint 

 

<snip>/testcasetree/projectrepository/<projectid> 

 

 and seeing the id in the list

 

What I'm trying to do is to get a list of all test cases by phase, in multiple projects in their Project Test repository's

 

 

 

3 REPLIES 3
govinddrolia
Staff

Hello Ssatelle,

 

Yes you could get by the above API and the above API is working fine I could see you have used the wrong URL the complete URL should be like this

 

{{Zephyr_Base_URL}}/flex/services/rest/latest/testcase/nodes?treeids=

 

Thanks

Govind

My base url is defined as:

https://<company>.yourzephyr.com/flex/services/rest/latest

 

so the query I'm running is :

GET:

https://<company>.yourzephyr.com/flex/services/rest/latest/testcase/nodes?treeids=139397

 

And the response is  a 415 error which means
The HTTP 415 Unsupported Media Type client error response code indicates that the server refuses to accept the request because the payload format is in an unsupported format. The format problem might be due to the request's indicated Content-Type or Content-Encoding , or as a result of inspecting the data directly.

 

I have no body in the request (it's  a GET request anyway) and I also tried with Content-Type application/json with the same result

 

 

 

 

govinddrolia
Staff

Hello 

 

Could you raise the support case https://support.smartbear.com/zephyr-enterprise/message/  So that we could investigate more in detail why you are not able to get the response 

 

Thanks

Govind 

cancel
Showing results for 
Search instead for 
Did you mean: