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.
Or read this on Hacker News