Many of us have to integrate third-party APIs, and we cannot trust their documentation. We also need to track when their data format changes. The same is true for integrating our own (or other teams’) microservices.
In this talk, I will present my approach to doing this safely with TypeScript and how this enables end-to-end contract testing.
This is a very practical, hands-on talk with many concrete examples that will give the audience a clear guide on how to build robust, well documented system integrations.
We leverage NPM modules to version our API definition and create a clear source of truth for all your integrations, be it a REST API, WebSocket or CoAP messages-the same principle applies.
Key Takeaways:- Learn about TypeBox and how I use it to make integrations of third-party APIs type-safe
- See a code-example where a frontend-application runs against a mock-API using these types
- Get to know techniques to discover breaking API changes through monitoring