openapi-generator/samples/client/petstore/java/jersey2
2016-02-22 19:00:57 +08:00
..
src Support readonly properties for Java retrofit clients 2016-02-22 19:00:57 +08:00
build.gradle Fix tests by upgrading libraries 2016-02-19 17:48:59 +08:00
gradle.properties add gradle files with android support 2015-10-12 16:16:38 +02:00
hello.txt Rebuild Java clients for the petstore sample 2015-09-11 13:22:37 +08:00
pom.xml Fix tests by upgrading libraries 2016-02-19 17:48:59 +08:00
README.md Add missing libs to Java jersey2 client 2016-02-19 13:24:16 +08:00
settings.gradle add gradle files with android support 2015-10-12 16:16:38 +02:00

swagger-petstore-jersey2

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-petstore-jersey2</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