The Recommended Pattern for Testing for API Changes
Applying the three rules for modifying APIs starts at the design phase of your API update. Itâs important you take the time to review all the requested changes before moving forward to make your API modifications. Then itâs important to implement those design changes faithfully. You also need to validate that your changes wonât break existing API consumers.
Validating API changes involves a few steps:
- Asking yourself, âWho is using your API?â
- Validating your API changes with existing tests
- Confirming your API changes with new, stand-alone tests
Who Is Using Your API?
This can be a tricky business since you donât always have access to all the API consumer apps or the teams that build ...
Get Design and Build Great Web APIs now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.