Forum Discussion

lubnajahan's avatar
lubnajahan
Visitor
7 years ago

how to get API response in ascending order

Hello,

 

Like to know how to get the API (Rest) response in ascending order where there are some ID exists inside the response

 

Thanks.

Lubna

1 Reply

  • groovyguy's avatar
    groovyguy
    Champion Level 1

    I believe that is functionality that needs to exist in the API itself, and is not something ReadyAPI can force for you. It has no control over the response or how it is laid out as far as I am aware. Typically, in my environments and APIs, if I want the response sorted I have to indicate that with the request I make. That is completely separate and is within the API itself and not inherently a part of ReadyAPI. 

     

    That being said, you could write a groovy script to sort the response for you, but there's no way for ReadyAPI to do it as far as I am aware.