openapi-generator/samples/client/petstore/java/default
xhh be0bc71c86 Improve checking of JSON MIME in Java default and jersey2
to support suffix like charset in "application/json; charset=UTF8"
2015-12-09 16:30:55 +08:00
..
src Improve checking of JSON MIME in Java default and jersey2 2015-12-09 16:30:55 +08:00
build.gradle provide dependency to javax.annotation.Generated for android 2015-11-02 16:16:14 +01:00
gradle.properties add gradle files with android support 2015-10-12 16:16:38 +02:00
hello.txt Java petstore sample: move to "default" sub-folder, add jersey2 2015-08-05 17:28:45 +08:00
pom.xml Use separate library to do base64 encoding in Java 2015-11-22 16:27:14 +08:00
README.md Add README.md to Java clients 2015-11-06 17:15:32 +08:00
settings.gradle add gradle files with android support 2015-10-12 16:16:38 +02:00

swagger-java-client

Requirements

Building the API client library requires Maven to be installed.

Installation & Usage

To install the API client library to your local Maven repository, simply execute:

mvn install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn deploy

Refer to the official documentation for more information.

After the client libarary is installed/deployed, you can use it in your Maven project by adding the following to your pom.xml:

<dependency>
    <groupId>io.swagger</groupId>
    <artifactId>swagger-java-client</artifactId>
    <version>1.0.0</version>
    <scope>compile</scope>
</dependency>

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issue.

Author

apiteam@swagger.io