A client is generated on basis of the API specification.
To (re)generate the client, follow these steps:
- Optional: update the
spec/openapi.jsonfile- Make sure the server is running and retrieve the file
curl -o spec/openapi.json http://localhost:8080/rest/openapi.json
- Make sure the server is running and retrieve the file
- Run the
initializephase of the project ingenerator:mvn -f openapi-client-generator initialize
- Build the project in
component-registry-client:mvn -f component-registry-client clean install
Important note! Due to an apparent issue in the generator, the following dependency must be manually be upgraded to the 2.x version after generation:
<dependency>
<groupId>io.github.threeten-jaxb</groupId>
<artifactId>threeten-jaxb-core</artifactId>
<version>2.2.0</version>
</dependency>