-

@ mleku
2025-03-12 19:26:26
oh yeah, the `/filter` endpoint does do time windows, and it can now also support sort orders
so it will be https://mleku.realy.lol/filter?since=123546&until=23455&sort=desc&limit=100
if you click on that link once it's implemented, it will fill your browser with JSON with one line break per result, assuming you put a set of parameters in the POST payload with the pubkeys, kinds and tags you want to search for (tag means letter and a keyword/prefix to find in the second field of the tag)
that was what this minor update was for, mainly, preparing the ground so once i have the filter endpoint, and tested it so i can get a query, it returns a list of events, then i can just send that list up on the `/events` endpoint and there you have it, same flow as before, yes, it is a two round trip but probably later this can be collapsed into a single endpoint, i made them separate so they are simpler and i want to encourage this method as it saves bandwidth and power for mobile devices, which only have to download the list of events first, and then only ask for the ones that it needs to be able to show on the display, which will be, obviously, only a few plus some extra to allow immediate scrolling