Hello Community,
I’ve just started using cockpit as my iOs app backend, everything works great
but I don’t know how & I didn’t find anywhere to pass ‘sort’ param in the url.
Well I tried both &filter[_created]=1 and
&sort[_created]=1 either way no change in the output. As there’s no clear and concise documentation for the filtering and sorting within the url, I’m pretty much lost !
Thank you @serjoscha87, It works!, the issues was that I added “&?sort” instead of “&sort”
as my access token was active,I had to do it like this “/api/collections/get/name?token=xxxxx&sort[_created]=-1”
then your sould perhaps read about how to generally use URL query strings
the order of params does not matter at all but query parameter are always initialized using a question mark. Any further param passed to the URI needs a & in front of the var name.
Hello its me again
One last question, is there any endpoint which allows to get all collections + entries in one request ? (so I can get all data in one api reqquest instead of firing a request for each and every collection.