Jump to content
  • 0

API - Services getAllByClient


breeze

Question

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!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...