News for hackers. Stuff that matters.
Re:How to Design Better APIs by gigatexal on Saturday March 12, 2022 @12:47AM (#30649262)
lol this could have been a single line blog post: “Do whatever stripe does with their APIs.”

I kid. There’s some good stuff in here.

Re:How to Design Better APIs by rbluethl on Sunday March 13, 2022 @07:56AM (#30660464)
Author here. Haha! You are right. I admire Stripe's API and there's absolutely a lot of things in it that are my "benchmark" when it comes to good APIs. However, they return UNIX timestamps, for example, which I don't like that much (as stated in the post). They also use POST for updates, because, if I recall correctly, PUT/PATCH wasn't a thing yet when Stripe was built initially. Thanks for the comment.