Skip to content

Commit

Permalink
fix: bump of remaining version mentions and yaml schema update (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
YegorZh authored Jun 25, 2024
1 parent c6aabf0 commit c660cb0
Show file tree
Hide file tree
Showing 3 changed files with 485 additions and 245 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

The official Java client library for the [Unit API](https://unit.co/docs/api/). This library is the first Unit SDK to be generated from the [Unit OpenAPI schema](https://github.com/unit-finance/openapi-unit-sdk) and is currently available in beta. We encourage you to share any comments, suggestions or issues you encounter while implementing this SDK with us and contribute to the development of this Java client.


## Requirements

Building the API client library requires:
Expand All @@ -11,7 +10,9 @@ Building the API client library requires:
2. Maven/Gradle

## Installation

Add this dependency to your project's POM:

```xml
<repositories>
<repository>
Expand All @@ -24,10 +25,11 @@ Add this dependency to your project's POM:
<dependency>
<groupId>co.unit</groupId>
<artifactId>java-sdk</artifactId>
<version>0.0.4</version>
<version>0.0.5</version>
</dependency>
</dependencies>
```

## Basic Usage Examples

For more examples of basic usage, see the [Test suites](https://github.com/unit-finance/unit-openapi-java-sdk/tree/main/src/test/java/org/openapitools/client) or [API Reference documentation](https://docs.unit.co/).
Expand Down Expand Up @@ -73,11 +75,13 @@ UnitCreateApplicationResponse res = apiClient.execute(request);
```

## About

To generate a customized version of the unit-java-sdk using our [OpenAPI project](https://github.com/unit-finance/openapi-unit-sdk)
we suggest using the open-generator-cli to generate the Java client using the following command:

```commandline
openapi-generator-cli generate -g java -i openapi.json -o unit
-p hideGenerationTimestamp=true -p packageName=unit.java.sdk
-p modelPackage=unit.java.sdk.model -p apiPackage=unit.java.sdk.api
openapi-generator-cli generate -g java -i openapi.json -o unit
-p hideGenerationTimestamp=true -p packageName=unit.java.sdk
-p modelPackage=unit.java.sdk.model -p apiPackage=unit.java.sdk.api
--library native -p useJakartaEe=true
```
Loading

0 comments on commit c660cb0

Please sign in to comment.