openapi-generator/samples/client/petstore/java/default
2016-04-03 14:36:00 -06:00
..
src rebuilt with generation timestamp disabled 2016-04-03 14:36:00 -06:00
.gitignore push new git_push and .gitinore file 2016-03-12 18:01:53 +08:00
build.gradle Add missing libs to Java jersey2 client 2016-02-19 13:24:16 +08:00
git_push.sh push new git_push and .gitinore file 2016-03-12 18:01:53 +08: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
petstore_profiling.output Add simple profiling for Java Petstore sample 2015-12-26 16:48:49 +08:00
pom.xml Updated PetStore sample for Java client (default) 2015-12-10 10:43:30 -05:00
README.md Remove unused jackson imports from Java models 2016-02-17 18:03:27 +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 library 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