A sample project for contract first approach using OAS
This project is a simple representation of contract first approach using open api specification.
We have created the contract first, then generated the client and server (interface only) code using the openapi-generator-maven-plugin
.
We have implemented the server side code in the service code (contract-first) and then used the generated client side code in consuming the service (sample-client).
- Clone the repository.
- Run the ContractFirstApplication.java file
- Then run the SampleClientApplication.java file
- Download and import the postman collection
- Hit the get-client-products endpoint