Get the latest tech news

Deactivating an API, one step at a time


How do you make sure all consumers stop using an API so you can safely deactivate it?

In addition to offering human-understandable communication, I asked the API producer to add the Deprecation HTTP header field to all responses. Additionally, I asked the producer to add the sunset HTTP header to every response so the consumers would also receive machine-readable information. In my case, it required "deprovisioning" the server instances that were running the API, the database holding its data, and removing all the information related to authorization.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of API

API

Photo of Time

Time

Photo of step

step

Related news:

News photo

The time heist begins in Time Bandits’ first Apple TV Plus trailer

News photo

Buy a Windows 11 Pro license for $23 - an all-time low price

News photo

No finger pricks: Tiny laser-loaded band-aid tracks glucose from sweat | The innovative device integrates microlaser technology into a soft hydrogel film for precise biomarker detection in real-time.