Generate a Typed OpenAPI Client
The SAP Cloud SDK offers an OpenAPI client generator as a Maven plugin and as a command-line tool.
Either can be used to generate a client library for a REST API based on its OpenAPI specification.
The OpenAPI generator is a wrapper around the public open-source OpenAPI Generator where we have adjusted the mustache
templates to integrate the generated client library with the SAP Cloud SDK core.
The generated Java classes need the following dependency to be present in your project:
<dependency>
<groupId>com.sap.cloud.sdk.datamodel</groupId>
<artifactId>openapi-core</artifactId>
</dependency>
To use the generated client library, either the SAP Cloud SDK BOM should be part of your project's <dependencyManagement>
section, or the version for the openapi-core
artifact must be mentioned explicitly here.