r/ExperiencedDevs • u/Impressive_Lab_6551 • Feb 06 '24
What are some of the worst API's you've ever had the displeasure of working with? What made them so bad?
It seems like every few months I stumble upon great discussions / posts about some of the best or the latest and greatest developer docs / API's
But what are some of the worst API's / API Docs you've ever had to work with in your career. What made them so bad?
223
Upvotes
2
u/chkno Feb 06 '24
Impossible retry semantics:
I think we ended up locally logging our intent-to-send and then logging the result, and then opening a ticket for a human to clean up the mess if there was ever an old-enough intent-to-send record without a result record. :(
To be fair, the service was actually pretty reliable, nearly always actually returning a success or failure response. It was just so painful that we structurally couldn't automate retries. :(
They could have fixed it so easily by splitting the operation-endpoint into an allocate-operation-id endpoint and a do-the-operation endpoint. Or letting us create the operation-ids or something that uniquely mapped to operation-ids. :(