Notices by ew (e@masochi.st)
-
ew (e@masochi.st)'s status on Tuesday, 11-Oct-2022 18:23:37 JST ew @mint @alex @ne @hj using singular terms is pretty common in db and api design. if you have a list of notes and you index into it, you would expect user[0] to return the user at index 0. if it's users[0] it looks like a nested array structure. similarly with api design, if you're already doing /users/:id then what are you supposed to use if you want to show a list of registered users? you have to use /users/ or rename it /all-users/ or something dumb -
ew (e@masochi.st)'s status on Tuesday, 11-Oct-2022 18:23:36 JST ew @mint @alex @hj @ne I use /ap/{actor,following,followers,inbox,outbox}/:id for activity stuff so I can easily just redirect nginx to forward /ap/* and then for the frontend I use /user/:id /followers/:id /thread/:id -
ew (e@masochi.st)'s status on Tuesday, 11-Oct-2022 18:23:34 JST ew @ne @alex @mint @hj huh?