mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 19:33:55 +00:00
8d3e555f8a
containing documentation like how to build and use the client
1022 B
1022 B
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 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-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.