cancel
Showing results for 
Search instead for 
Did you mean: 

Zephyr - GET request return invalid JSON still

SOLVED
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

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Occasional Contributor

Re: Zephyr - GET request return invalid JSON still - OPEN API bug

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

View solution in original post

3 REPLIES 3

Re: Zephyr - GET request return invalid JSON still

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.

Occasional Contributor

Re: Zephyr - GET request return invalid JSON still - OPEN API bug

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

View solution in original post

Community Manager

Re: Zephyr - GET request return invalid JSON still - OPEN API bug

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

Thanks for the help, Bibek

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors