Werner Eberling on API Definition and Test with Consumer Driven Contracts (CDC)

Symbolic picture for the article. The link opens the image in a large view.


On December 14th 2022, we were privileged to hear from Werner Eberling on API Definition and Test with Consumer Driven Contracts (CDC) as part of the AMOS Projects. Werner Eberling is a Principal Consultant and Trainer at MATHEMA GmbH. His passion and knowledge on the topic led to a very informative and inspiring talk.

Abstract: Consumer Driven Contracts provide a new way to define REST-APIs. It’s not the service provider that is defining what he is willing to offer. It’s the service consumer who defines what he/she needs. And this is exactly what he/she gets. One way of doing this is the usage of PACT to define the interactions between consumer and provider. In this talk, you will learn – based on a concrete source code example – how to write PACT files and how these can be used to verify consumer as well as provider implementations. In addition, we will discuss the difference between CDC and API definitions like Swagger/OpenAPI.

The slide deck is also available as a PDF for download.