Jump to content
  • 0

API - Services getAllByClient


Question

Posted

Hi guys,

Trying to wrap my head around one of the query fields here. I want to understand how to sort by a field with ASC / DESC.

I am calling https://SERVER/api/services/getAllByClient.json

And query fields:

client_id = 1

status = active

order_by = ????

The API docs give the example   ['date_added' => 'DESC']. Whenever I pass this it just fails the whole request.

 

For the record, the query string.

https://SERVER/api/services/getAllByClient.json?client_id=1&status=active&order_by=['date_added' %3D> 'DESC']

 

What is to correct syntax for the order_by value?

 

 

Thanks!

2 answers to this question

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...