📄️ What Is a Contract?
In the Design by contract wikipedia article, we can find the following affirmation:
📄️ Define Your Endpoints in a Contract
Given a User with the following structure:
📄️ Generate Code from the Contract
Why do We Want to Generate Code from the Contract?
📄️ Understanding the Generated Code
Let’s briefly explore what the openapi-generator plugin produced and why it looks so verbose.
📄️ Use the Generated Code
So far we've used the OpenAPI Generator Gradle Plugin to generate the representation of the OpenAPI Specification (our contract) in Java code.