Twitter | Pretraživanje | |
Patrick Collison
(Separately, I *also* love the way that errors -- like the one here -- include a debug URL. In addition to helping the developer fix things, access patterns to those URLs give us practical telemetry about what's causing confusion so that we can make improvements.)
Reply Retweet Označi sa "sviđa mi se" More
Ashley Brooks 25. sij
Odgovor korisniku/ci @patrickc
Curious if you’d be willing to share: does Stripe have a team dedicated to awesome API improvements like this or do teams own their own endpoints/APIs and just stick to specific guidelines?
Reply Retweet Označi sa "sviđa mi se"
Mathias Hansen 25. sij
Odgovor korisniku/ci @aabrooks_ @patrickc
That’s super awesome! I haven’t really seen any other API’s implement this before. We did something similar recently with a _warnings key. Would love to borrow this idea and link to relevant docs as well
Reply Retweet Označi sa "sviđa mi se"
Peter Boyer 24. sij
Odgovor korisniku/ci @patrickc
Great error messages demonstrate the maturity of the team implementing the API. Shows understanding of the API state space, failure modes, empathy for users/non-experts, methodical implementation. 🤗🤗🤗
Reply Retweet Označi sa "sviđa mi se"
Patrick Breitenbach 24. sij
Odgovor korisniku/ci @patrickc
Shouldn't the RESTfulness of APIs obviate the need for client SDKs (at least on some platforms)?
Reply Retweet Označi sa "sviđa mi se"
ColDiv 24. sij
Odgovor korisniku/ci @patrickc
The debug url is a simple but brilliant idea
Reply Retweet Označi sa "sviđa mi se"
Anwar Z. 25. sij
Odgovor korisniku/ci @patrickc
React also does this in a smart way, they display warnings in the console and put a reference to that specific error under the /warnings URL path (for e.g )
Reply Retweet Označi sa "sviđa mi se"
Victor Teodoro 25. sij
Odgovor korisniku/ci @patrickc
My jaw drops a little more each day in response to the maturity and beauty of stripe's offers. I work in payments and stripe has been for many years the gold standard.
Reply Retweet Označi sa "sviđa mi se"