We have created a number of example projects and demo material that you can use as references for your rolling out your contract-testing initiatives.
Here are some useful resources when it comes to engaging your teams to help with Pact or contract-testing related initiatives:
|Demo Pack||A general demo pack for introducing Pact & the concepts of contract testing||pdf | pptx|
Product Catalog System (HTTP/Messages)
Our standard example is a product catalog website (see React) which consumes a basic Products API implementing the following HTTP interface.
All demo languages implement this interface so that we can easily mix and match technologies.
See and interact with the OpenAPI Product Spec here
- "id": "string",
- "type": "string",
- "name": "string",
- "version": "string",
- "price": 0
Endpoints / Example Response
The single get product endpoint is not a spelling mistake, and is used to show evolution to more standard resource based design
Click on the description link to see the example repository in GitHub.
We run these against GitHub Actions, so you can easily fork the repository and try it out today.