This demo repository shows how to use spring cloud contract to implement Consumer-Driven Contract Testing.
- JDK 11
- Gradle
- Spring Cloud Contract
- Spring REST Docs
- WebTestClient
- A Github account and setting SSH Key
- Fork contract consumer-driven-contract-git
- Fork provider repository fraud
- Fork consumer repository loan
Replace your username in src/e2e/resources/application.yml
git://https://github.com/<username>/consumer-driven-contract-git.git
Execute the following command at the root of the project.
./gradlew clean build
./gradlew clean build
- offline:
build/docs/asciidoc/api-guide.html
- online:
http(s)://ip:port/docs/api-guide.html