You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)*
11
12
12
-
<aid="frameworks-supported"></a>
13
-
## Frameworks supported
14
13
15
-
<aid="dependencies"></a>
16
-
## Dependencies
14
+
## Requirements
17
15
18
-
-[RestSharp](https://www.nuget.org/packages/RestSharp) - 106.13.0 or later
19
-
-[Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 13.0.2 or later
20
-
-[JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.8.0 or later
21
-
-[System.ComponentModel.Annotations](https://www.nuget.org/packages/System.ComponentModel.Annotations) - 5.0.0 or later
16
+
Building the API client library requires:
17
+
1. Java 1.8+
18
+
2. Maven (3.8.3+)/Gradle (7.2+)
22
19
23
-
The DLLs included in the package may not be the latest version. We recommend using [NuGet](https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages:
24
-
```
25
-
Install-Package RestSharp
26
-
Install-Package Newtonsoft.Json
27
-
Install-Package JsonSubTypes
28
-
Install-Package System.ComponentModel.Annotations
20
+
## Installation
21
+
22
+
To install the API client library to your local Maven repository, simply execute:
23
+
24
+
```shell
25
+
mvn clean install
29
26
```
30
27
31
-
NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See [RestSharp#742](https://github.com/restsharp/RestSharp/issues/742).
32
-
NOTE: RestSharp for .Net Core creates a new socket for each api call, which can lead to a socket exhaustion problem. See [RestSharp#1406](https://github.com/restsharp/RestSharp/issues/1406).
28
+
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
33
29
34
-
<aid="installation"></a>
35
-
## Installation
36
-
Run the following command to generate the DLL
37
-
-[Mac/Linux]`/bin/sh build.sh`
38
-
-[Windows]`build.bat`
39
-
40
-
Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces:
41
-
```csharp
42
-
usingOrg.OpenAPITools.org.databox.api;
43
-
usingOrg.OpenAPITools.Client;
44
-
usingOrg.OpenAPITools.Model;
30
+
```shell
31
+
mvn clean deploy
45
32
```
46
-
<aid="packaging"></a>
47
-
## Packaging
48
33
49
-
A `.nuspec` is included with the project. You can follow the Nuget quickstart to [create](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package#create-the-package) and [publish](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package#publish-the-package) packages.
34
+
Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information.
35
+
36
+
### Maven users
50
37
51
-
This `.nuspec` uses placeholders from the `.csproj`, so build the `.csproj` directly:
38
+
Add this dependency to your project's POM:
52
39
40
+
```xml
41
+
<dependency>
42
+
<groupId>org.databox</groupId>
43
+
<artifactId>databox</artifactId>
44
+
<version>0.1.2</version>
45
+
<scope>compile</scope>
46
+
</dependency>
53
47
```
54
-
nuget pack -Build -OutputDirectory out Org.OpenAPITools.csproj
48
+
49
+
### Gradle users
50
+
51
+
Add this dependency to your project's build file:
52
+
53
+
```groovy
54
+
repositories {
55
+
mavenCentral() // Needed if the 'databox' jar has been published to maven central.
56
+
mavenLocal() // Needed if the 'databox' jar has been published to the local maven repo.
57
+
}
58
+
59
+
dependencies {
60
+
implementation "org.databox:databox:0.1.2"
61
+
}
55
62
```
56
63
57
-
Then, publish to a [local feed](https://docs.microsoft.com/en-us/nuget/hosting-packages/local-feeds) or [other host](https://docs.microsoft.com/en-us/nuget/hosting-packages/overview) and consume the new package via Nuget as usual.
64
+
### Others
58
65
59
-
<aid="usage"></a>
60
-
## Usage
66
+
At first generate the JAR by executing:
61
67
62
-
To use the API client with a HTTP proxy, setup a `System.Net.WebProxy`
0 commit comments