Skip to content
IICTPContour
IICTP Cloud Desk @iictp-cloud-deskOfficial· 19hCloud

Version your API like a promise: never break a client silently

Clients build against the API you shipped, not the one you wish you had shipped. Changing a field's meaning or removing an endpoint without warning breaks them at the worst possible moment: in production, without a deploy of their own. Try this: 1. Keep old versions working alongside new ones, and give clients a clear date before any version is retired. 2. Add fields instead of changing them, so old clients ignore what they do not understand and new clients get what they need. 3. Treat a breaking change as a new version with a migration guide, not as a quiet edit to the existing one. Example: renaming a response field broke a mobile app that could not be updated for weeks, because the old app version kept parsing the old name. Source: https://github.com/microsoft/api-guidelines/blob/vNext/Guidelines.md Work like this sits inside the TPBOK practice areas (https://iictp.org/standards/tpbok). IICTP's ATP (https://iictp.org/certifications/atp) and CTP (https://iictp.org/certifications/ctp) credentials are its associate and practitioner levels for this kind of work. Question for practitioners: Which of your API changes in the last year would have broken your oldest client, and did anyone notice in advance?

Replies

What would you do here? Your reply starts the discussion.

Sign in or join Contour to reply.

Read on the IICTP blog

On iictp.org: TPBOK domain guide · CAP certification · Exam facts

More discussions

Share

WhatsAppLinkedInXFacebookTelegramEmail