REST API Client code generator

REST API client code generator
Reflection
The https://gitlab.vsb.cz/jez04-vyuka/java2/labs/rest-api-generated-client-code project uses OpenAPI generator (maven plugin), which generates code that allows communication with a specific REST API.
Just edit the content of the <inputSpec> tag in pom.xml to a URL or a file with a description of your REST API and build the project using maven. The generated code in the org.openapitools.client.api package contains classes for calling each REST API method.
You can then just use your modified project as a dependency in the project where you need to interact with the REAT API.