Ask a Question

Zephyr - GET request return invalid JSON still

SOLVED
lukaspollak
Occasional Contributor

Zephyr - GET request return invalid JSON still

Hi. I have a troubles with endpoint Get Step Result By execution -> https://zfjcloudgdpr.docs.apiary.io/#reference/stepresult/get-stepresults-by-execution

URL: 

 

 

https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/stepresult/search?issueId=15550&executionId=bacf0888-4be9-4e07-8474-559daafddfc84

 

 

 HEADERS:

 

 

Content-Type: application/json
Authorization: JWT ...
zapiAccessKey: MDRiZGJmNDAtOTI....

 

 

URI PARAMETERS:

 

 

executionId: bacf0888-4be9-4e07-8474-559daafddfc84
issueId: 15550

 

 

RESPONSE:

 

 

{
  "errorType": "ERROR",
  "clientMessage": "Invalid Json",
  "errorCode": 151
}

 

 

 

Also i have an question about stepResultID, it is possible to get it only from mentioned (on the up) endpoint ? 

 

Thanks for response.

Lukas Pollak

3 REPLIES 3
BibekBehera
Staff

Hi @lukaspollak ,

 

Please find the below APIs.

1) To find execution ids of an issue id.

API:

https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/executions?issueId=your_issue_id&p...

Method: GET

Ex:

https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/executions?issueId=53111&projectId...

Response: Above API provide the many execution ids of your specified issueid.

Screenshot attached.

Reference link:

https://zfjcloud.docs.apiary.io/#reference/execution/get-list-of-executions/get-list-of-executions


**************************************************************************************

2) Get stepresults by Execution

API:

https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/stepresult/search?executionId=&iss...

Method: GET

Ex:

https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/stepresult/search?executionId=005c...


005c1230-34c6-4540-aed4-bd7eb7c9580c --> my execution id from the above 1st API response.

Response:

Screenshot attached.

lukaspollak
Occasional Contributor

Ok. So i am doing it in the same way like u. But it is good that u have sent me a screenshot. I found in your OPEN API -that u has required Content-type (not possible unclick), but with content-type it is not working and therefore i spent on it much time, but thanks to your screenshots i found the reason.

See on the attached screenshots
Thanks for response.

drawisland (2).png

 

drawisland (3).png

TanyaYatskovska
SmartBear Alumni (Retired)

Happy to hear that the issue was resoled, @lukaspollak!

Thanks for the help, Bibek

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



cancel
Showing results for 
Search instead for 
Did you mean: