Closed supre closed 8 years ago
That looks correct to me and appeared to return the correct results in my test. Is it returning the results you expected?
Aaha my bad, it was working fine. BTW, I didn't find any example on how to sort. How can I sort my returned rows based on created_at
?
Sure, I'll get the docs updated to cover sorting. In the meantime, here are some examples:
Ascending (default):
Descending:
If you need to sort by multiple properties you can specify the sort[]
parameter multiple times. Sorts will be applied in the order in which they're given.
Aaha that works, thanks
Currently I am trying to use something like this: https://{{subdomain}}.myspringboard.us/api/inventory/transactions?page=1&per_page=100&~[created_at][$gt]=2013-04-19
Is this the way it's supposed to be done or am I making some mistake in my query?