I started testing the XRay REST API as a trial first.
I created the API Key and put it in the POST Request
Then I used the created token and put it in the GET Request Header as (Authorization Type: Bearer Token using Postman).
Response: 400 Cannot GET /rest/raven/1.0/api/settings/teststatuses
What is wrong? Did I forget a step?
Nobody can help here?
Documentation Versioning is very confusing. The mentioned endpoints are different depending of the documentation version.
But trying the 2 endpoints give still 404 error...
The only requests which are working for me are the ones without the raven in path like:
The correct documentation for the REST API is the one found here, which is the latest documentation.
The error you are getting means the request you made was not correct, probably it was not correctly set up.
Please contact us through our support channel and send us screenshots of the request so that we can investigate and assist you.
I am also trying to connect with Xray using API mentioned in document but everytime I am getting 404.
My sample URL: "htttps://xxxxx.atlassian.net/rest/raven/2.0/api/teststatuses
However all the rest API, non raven one I am able to access:
Everytime I am trying to access non-raven api, same host is giving result but all the APIs mentioned in xray documentation with raven, I am getting 404.
Could you please help me with the same.
The test status you are referring to is the one present in this documentation: https://docs.getxray.app/display/XRAY/Tests+-+REST#TestsREST-GettingallTestsstatuses, that means you are using Server/DC version of Xray (we also have the Cloud version that differs in some aspects due to limitations in each version).
If that is the case please make sure that you are authenticating, not with token, but passing the user in the curl command as defined in the above documentation:
curl -H "Content-Type: application/json" -X GET -u admin:admin http://yourserver/rest/raven/1.0/api/settings/teststatuses
Hope it helps.
Thanks for the response.
I tried with below combinations:
Response: Metadata JSON (As expected)
In both the cases raven API is not connecting with Xray, Please let me know, what I am missing.
From your description, you are using Xray Cloud.
And Xray Cloud is a different app from Xray DC/Server.
You must have been looking at Xray DC/Server documentation, but the REST API is different from the Xray Cloud.
This REST API endpoint doesn't exist in Xray Cloud:
In Cloud, you need to GraphQL API instead. Please check the cloud documentation:
Rogério Paiva [Xray Support Team]
Have you been looking for a solution to easily create Confluence pages directly from a Jira Cloud issue? The no code solution is here with the brand new app Elements Publish to Confluence, which work...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events