The Case for Boring APIs
metorial.com·12w·
Discuss: Hacker News

There is a specific kind of care that public APIs require that internal ones do not. When you ship an internal service, you are building for your team. When you ship a public API, you are building infrastructure that strangers will depend on. The standards are different (obviously).

The Cost of Inconsistency

I once spent five days integrating with an API that should have taken an afternoon. The problem was not complexity. It was chaos.

Some endpoints returned {data: [...]}. Others returned raw arrays. Field names varied: created_at, createdAt, creation_date. Pagination worked differently on every endpoint. There was no pattern to learn, no consistency to rely on. I could not build a mental model because there was no model to build.

When you cannot figure out h…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help