I am using below end point for getting the test runs of test case in Xray , however the JSON response I get multiple test runs the test cases is linked to.
Is there a way to add a sort/order parameter to an API url query string so that latest test run should come at the top of list.
GET /rest/raven/2.0/api/test/{testKey}/testruns
Sample response :
{
<span>"id"</span>: <span>7</span>,
<span>"status"</span>: <span>"PASS"</span>,
<span>"testKey"</span>: <span>"test-2345"</span>,
<span>"testExecKey"</span>: <span>"test-1234"</span>,
<span>"avatar"</span>: <span>"https://s3.amazonaws.com/uifaces/faces/twitter/follettkyle/128.jpg"</span>
},
{
<span>"id"</span>: 2,
<span>"status"</span>: <span>"TODO"</span>,
<span>"testKey"</span>: <span>"test-2345"</span>,
<span>"testExecKey"</span>: <span>"test-8956"</span>,
<span>"avatar"</span>: <span>"https://s3.amazonaws.com/uifaces/faces/twitter/araa3185/128.jpg"</span>
}
]}