Forum Discussion

shashank1's avatar
shashank1
Frequent Visitor
3 years ago

Can't able to consume Rest Api?

Hi Team,

I am facing following error on requesting following api endpoint
curl --include --header "Content-Type: application/json" --header "Authorization: $jwt" --header "zapiAccessKey: $accessKey" 'https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/executions?issueId=710089&projectId=10958':

Expecting claim 'qsh' to have value '724aec8dcfed52646479d8799f1980fbc8e9577e4ebf973c4099d50c3ce02dec' but instead it has the value '78f03673cac3451279409a22b8faeb61a44534301b45a4044b689f6e5640343d'

I am able to create jwt token by following curl request:

curl -o headers -s -d '{ "accessKey": "'"$accessKey"'" , "secretKey": "'"$secretKey"'" ,"accountId": "'"$accountId"'","zephyrBaseUrl": "'"$zephyrBaseUrl"'","expirationTime":360000}' -H "Content-Type: application/json" -XPOST https://prod-vortexapi.zephyr4jiracloud.com/api/v1/jwt/generate

I an not sure what I am mistaking , Can you someone guide me in this topic?
Thanks

No RepliesBe the first to reply