openapi-generator/samples/client/petstore/java/okhttp-gson
2016-03-17 19:04:57 +08:00
..
src Java clients: fix test cases on HTTP basic auth 2016-03-17 19:04:57 +08:00
.gitignore Display parameter's default value for operations 2016-03-17 16:22:36 +08:00
build.gradle Java okhttp-gson: fix dependencies 2016-02-15 16:48:58 +08:00
build.sbt Java okhttp-gson: fix dependencies 2016-02-15 16:48:58 +08:00
git_push.sh Display parameter's default value for operations 2016-03-17 16:22:36 +08:00
gradle.properties add gradle files with android support 2015-10-12 16:16:38 +02:00
hello.txt Generate Java petstore sample for okhttp-gson 2015-08-31 19:59:17 +08:00
pom.xml update pom for okhttp-gson java to test gradle 2016-02-15 18:17:35 +08: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-petstore-okhttp-gson

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-okhttp-gson</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