1 Reply Latest reply on Oct 26, 2013 10:39 AM by pilhuhn

    Sorting/Ordering in REST API (4.9)?

    josgood

      Hey all,

       

      Is there currently any way to specify the sorting or ordering of results when retrieving data through the REST API? In particular, I'm trying to retrieve server events sorted by timestamp in descending order (similar to the default ordering of events in the core gui). I can't find anything in the documentation or code to suggest that this is possible, so I'm assuming it's not yet supported...

       

      Gratzi,

      Josh

        • 1. Re: Sorting/Ordering in REST API (4.9)?
          pilhuhn

          Hey,

          I think you are right here. I thought I implemented it for some parts, but apparently not.

           

          It shouldn't be that hard to add it in a form for a single column like sort=<column>[:ASC|DESC] for

          those endpoints that already support paging.

           

          Anyone wants to provide a patch? :-)