|
| 1 | +# file-resttemplate |
| 2 | + |
| 3 | +Response file abstraction test |
| 4 | + |
| 5 | +- API version: 1.0.0 |
| 6 | + |
| 7 | +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) |
| 8 | + |
| 9 | + |
| 10 | +*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)* |
| 11 | + |
| 12 | +## Requirements |
| 13 | + |
| 14 | +Building the API client library requires: |
| 15 | + |
| 16 | +1. Java 1.8+ |
| 17 | +2. Maven/Gradle |
| 18 | + |
| 19 | +## Installation |
| 20 | + |
| 21 | +To install the API client library to your local Maven repository, simply execute: |
| 22 | + |
| 23 | +```shell |
| 24 | +mvn clean install |
| 25 | +``` |
| 26 | + |
| 27 | +To deploy it to a remote Maven repository instead, configure the settings of the repository and execute: |
| 28 | + |
| 29 | +```shell |
| 30 | +mvn clean deploy |
| 31 | +``` |
| 32 | + |
| 33 | +Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information. |
| 34 | + |
| 35 | +### Maven users |
| 36 | + |
| 37 | +Add this dependency to your project's POM: |
| 38 | + |
| 39 | +```xml |
| 40 | +<dependency> |
| 41 | + <groupId>org.openapitools</groupId> |
| 42 | + <artifactId>file-resttemplate</artifactId> |
| 43 | + <version>1.0.0</version> |
| 44 | + <scope>compile</scope> |
| 45 | +</dependency> |
| 46 | +``` |
| 47 | + |
| 48 | +### Gradle users |
| 49 | + |
| 50 | +Add this dependency to your project's build file: |
| 51 | + |
| 52 | +```groovy |
| 53 | + repositories { |
| 54 | + mavenCentral() // Needed if the 'file-resttemplate' jar has been published to maven central. |
| 55 | + mavenLocal() // Needed if the 'file-resttemplate' jar has been published to the local maven repo. |
| 56 | + } |
| 57 | +
|
| 58 | + dependencies { |
| 59 | + implementation "org.openapitools:file-resttemplate:1.0.0" |
| 60 | + } |
| 61 | +``` |
| 62 | + |
| 63 | +### Others |
| 64 | + |
| 65 | +At first generate the JAR by executing: |
| 66 | + |
| 67 | +```shell |
| 68 | +mvn clean package |
| 69 | +``` |
| 70 | + |
| 71 | +Then manually install the following JARs: |
| 72 | + |
| 73 | +- `target/file-resttemplate-1.0.0.jar` |
| 74 | +- `target/lib/*.jar` |
| 75 | + |
| 76 | +## Getting Started |
| 77 | + |
| 78 | +Please follow the [installation](#installation) instruction and execute the following Java code: |
| 79 | + |
| 80 | +```java |
| 81 | + |
| 82 | +import org.openapitools.client.*; |
| 83 | +import org.openapitools.client.auth.*; |
| 84 | +import org.openapitools.client.model.*; |
| 85 | +import org.openapitools.client.api.ResourceApi; |
| 86 | + |
| 87 | +public class ResourceApiExample { |
| 88 | + |
| 89 | + public static void main(String[] args) { |
| 90 | + ApiClient defaultClient = Configuration.getDefaultApiClient(); |
| 91 | + defaultClient.setBasePath("http://localhost"); |
| 92 | + |
| 93 | + ResourceApi apiInstance = new ResourceApi(defaultClient); |
| 94 | + try { |
| 95 | + File result = apiInstance.resourceInResponse(); |
| 96 | + System.out.println(result); |
| 97 | + } catch (ApiException e) { |
| 98 | + System.err.println("Exception when calling ResourceApi#resourceInResponse"); |
| 99 | + System.err.println("Status code: " + e.getCode()); |
| 100 | + System.err.println("Reason: " + e.getResponseBody()); |
| 101 | + System.err.println("Response headers: " + e.getResponseHeaders()); |
| 102 | + e.printStackTrace(); |
| 103 | + } |
| 104 | + } |
| 105 | +} |
| 106 | + |
| 107 | +``` |
| 108 | + |
| 109 | +## Documentation for API Endpoints |
| 110 | + |
| 111 | +All URIs are relative to *http://localhost* |
| 112 | + |
| 113 | +Class | Method | HTTP request | Description |
| 114 | +------------ | ------------- | ------------- | ------------- |
| 115 | +*ResourceApi* | [**resourceInResponse**](docs/ResourceApi.md#resourceInResponse) | **GET** /resource | |
| 116 | + |
| 117 | + |
| 118 | +## Documentation for Models |
| 119 | + |
| 120 | + |
| 121 | + |
| 122 | +<a id="documentation-for-authorization"></a> |
| 123 | +## Documentation for Authorization |
| 124 | + |
| 125 | +Endpoints do not require authorization. |
| 126 | + |
| 127 | + |
| 128 | +## Recommendation |
| 129 | + |
| 130 | +It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues. |
| 131 | + |
| 132 | +## Author |
| 133 | + |
| 134 | + |
| 135 | + |
0 commit comments