Post B6zu5e2ZHTkgEyWr2m by filmroellchen@chaos.social
 (DIR) More posts by filmroellchen@chaos.social
 (DIR) Post #B6yQefmLngx1cGZEBs by alina@girldick.gay
       0 likes, 0 repeats
       
       tell me you have no idea how to design an API without telling me
       
 (DIR) Post #B6yQeg0WwyIGKFCYIC by freya@raru.re
       0 likes, 0 repeats
       
       @alina Not as bad as 200 OK followed by a JSON error message
       
 (DIR) Post #B6ySDE5Sqj15ozY132 by algernon@come-from.mad-scientist.club
       0 likes, 0 repeats
       
       But @alina, there must ALWAYS be a JSON response! You can then client.get("blah").send()?.body()?.json()?.ok, and don't even need to check the status code! Ain't that fantastic?! A uniform response, all the time, JSON, JSON, JSON everywhere!No ifs, no separate status code & body checks, just one glorious line of chained function calls! I'm literally melting from the pleasure this gives me. Ooooh... mmm... yeah, yeah... gimme more JSON. That's a good API. Yes yes yes. Good API gives more JSON.Err... sorry. Got a bit carried away there.
       
 (DIR) Post #B6ySDEIw2dnAUlqm2q by alina@girldick.gay
       0 likes, 0 repeats
       
       @algernon aaaaaaaaaa
       
 (DIR) Post #B6yUumdKU0TPKDHk36 by natty@astolfo.social
       0 likes, 0 repeats
       
       @alina@girldick.gay what I like to do is both this and status codesIt makes it easier to consume the responses
       
 (DIR) Post #B6zu5e2ZHTkgEyWr2m by filmroellchen@chaos.social
       0 likes, 0 repeats
       
       @alina looks like the ad-hoc Uptime-Kuma push monitoring endpoint