@@ -4,13 +4,145 @@ All URIs are relative to *http://localhost*
44
55| Method | HTTP request | Description |
66| ------------- | ------------- | -------------|
7+ | [ ** downloadIdGet** ] ( DefaultApi.md#downloadIdGet ) | ** GET** /download/{id} | |
8+ | [ ** downloadIdGetWithHttpInfo** ] ( DefaultApi.md#downloadIdGetWithHttpInfo ) | ** GET** /download/{id} | |
79| [ ** fooDtParamGet** ] ( DefaultApi.md#fooDtParamGet ) | ** GET** /foo/{dtParam} | |
810| [ ** fooDtParamGetWithHttpInfo** ] ( DefaultApi.md#fooDtParamGetWithHttpInfo ) | ** GET** /foo/{dtParam} | |
911| [ ** uploadPost** ] ( DefaultApi.md#uploadPost ) | ** POST** /upload | |
1012| [ ** uploadPostWithHttpInfo** ] ( DefaultApi.md#uploadPostWithHttpInfo ) | ** POST** /upload | |
1113
1214
1315
16+ ## downloadIdGet
17+
18+ > File downloadIdGet(id)
19+
20+
21+
22+ ### Example
23+
24+ ``` java
25+ // Import classes:
26+ import org.openapitools.client.ApiClient ;
27+ import org.openapitools.client.ApiException ;
28+ import org.openapitools.client.Configuration ;
29+ import org.openapitools.client.models.* ;
30+ import org.openapitools.client.api.DefaultApi ;
31+
32+ public class Example {
33+ public static void main (String [] args ) {
34+ ApiClient defaultClient = Configuration . getDefaultApiClient();
35+ defaultClient. setBasePath(" http://localhost" );
36+
37+ DefaultApi apiInstance = new DefaultApi (defaultClient);
38+ String id = " id_example" ; // String |
39+ try {
40+ File result = apiInstance. downloadIdGet(id);
41+ System . out. println(result);
42+ } catch (ApiException e) {
43+ System . err. println(" Exception when calling DefaultApi#downloadIdGet" );
44+ System . err. println(" Status code: " + e. getCode());
45+ System . err. println(" Reason: " + e. getResponseBody());
46+ System . err. println(" Response headers: " + e. getResponseHeaders());
47+ e. printStackTrace();
48+ }
49+ }
50+ }
51+ ```
52+
53+ ### Parameters
54+
55+
56+ | Name | Type | Description | Notes |
57+ | ------------- | ------------- | ------------- | -------------|
58+ | ** id** | ** String** | | |
59+
60+ ### Return type
61+
62+ [ ** File** ] ( File.md )
63+
64+
65+ ### Authorization
66+
67+ No authorization required
68+
69+ ### HTTP request headers
70+
71+ - ** Content-Type** : Not defined
72+ - ** Accept** : application/octet-stream
73+
74+ ### HTTP response details
75+ | Status code | Description | Response headers |
76+ | -------------| -------------| ------------------|
77+ | ** 200** | ok | - |
78+
79+ ## downloadIdGetWithHttpInfo
80+
81+ > ApiResponse<File > downloadIdGetWithHttpInfo(id)
82+
83+
84+
85+ ### Example
86+
87+ ``` java
88+ // Import classes:
89+ import org.openapitools.client.ApiClient ;
90+ import org.openapitools.client.ApiException ;
91+ import org.openapitools.client.ApiResponse ;
92+ import org.openapitools.client.Configuration ;
93+ import org.openapitools.client.models.* ;
94+ import org.openapitools.client.api.DefaultApi ;
95+
96+ public class Example {
97+ public static void main (String [] args ) {
98+ ApiClient defaultClient = Configuration . getDefaultApiClient();
99+ defaultClient. setBasePath(" http://localhost" );
100+
101+ DefaultApi apiInstance = new DefaultApi (defaultClient);
102+ String id = " id_example" ; // String |
103+ try {
104+ ApiResponse<File > response = apiInstance. downloadIdGetWithHttpInfo(id);
105+ System . out. println(" Status code: " + response. getStatusCode());
106+ System . out. println(" Response headers: " + response. getHeaders());
107+ System . out. println(" Response body: " + response. getData());
108+ } catch (ApiException e) {
109+ System . err. println(" Exception when calling DefaultApi#downloadIdGet" );
110+ System . err. println(" Status code: " + e. getCode());
111+ System . err. println(" Response headers: " + e. getResponseHeaders());
112+ System . err. println(" Reason: " + e. getResponseBody());
113+ e. printStackTrace();
114+ }
115+ }
116+ }
117+ ```
118+
119+ ### Parameters
120+
121+
122+ | Name | Type | Description | Notes |
123+ | ------------- | ------------- | ------------- | -------------|
124+ | ** id** | ** String** | | |
125+
126+ ### Return type
127+
128+ ApiResponse<[ ** File** ] ( File.md ) >
129+
130+
131+ ### Authorization
132+
133+ No authorization required
134+
135+ ### HTTP request headers
136+
137+ - ** Content-Type** : Not defined
138+ - ** Accept** : application/octet-stream
139+
140+ ### HTTP response details
141+ | Status code | Description | Response headers |
142+ | -------------| -------------| ------------------|
143+ | ** 200** | ok | - |
144+
145+
14146## fooDtParamGet
15147
16148> Foo fooDtParamGet(dtParam, dtQuery, dtCookie)
@@ -151,7 +283,7 @@ No authorization required
151283
152284## uploadPost
153285
154- > void uploadPost(_ file)
286+ > UploadPostDefaultResponse uploadPost(_ file, metadata )
155287
156288
157289
@@ -172,8 +304,10 @@ public class Example {
172304
173305 DefaultApi apiInstance = new DefaultApi (defaultClient);
174306 File _file = new File (" /path/to/file" ); // File |
307+ File metadata = new File (" /path/to/file" ); // File |
175308 try {
176- apiInstance. uploadPost(_file);
309+ UploadPostDefaultResponse result = apiInstance. uploadPost(_file, metadata);
310+ System . out. println(result);
177311 } catch (ApiException e) {
178312 System . err. println(" Exception when calling DefaultApi#uploadPost" );
179313 System . err. println(" Status code: " + e. getCode());
@@ -190,12 +324,13 @@ public class Example {
190324
191325| Name | Type | Description | Notes |
192326| ------------- | ------------- | ------------- | -------------|
193- | ** _ file** | ** File** | | [ optional] |
327+ | ** _ file** | ** File** | | |
328+ | ** metadata** | ** File** | | [ optional] |
194329
195330### Return type
196331
332+ [ ** UploadPostDefaultResponse** ] ( UploadPostDefaultResponse.md )
197333
198- null (empty response body)
199334
200335### Authorization
201336
@@ -204,7 +339,7 @@ No authorization required
204339### HTTP request headers
205340
206341- ** Content-Type** : multipart/form-data
207- - ** Accept** : Not defined
342+ - ** Accept** : application/json
208343
209344### HTTP response details
210345| Status code | Description | Response headers |
@@ -213,7 +348,7 @@ No authorization required
213348
214349## uploadPostWithHttpInfo
215350
216- > ApiResponse<Void > uploadPostWithHttpInfo(_ file)
351+ > ApiResponse<UploadPostDefaultResponse > uploadPostWithHttpInfo(_ file, metadata )
217352
218353
219354
@@ -235,10 +370,12 @@ public class Example {
235370
236371 DefaultApi apiInstance = new DefaultApi (defaultClient);
237372 File _file = new File (" /path/to/file" ); // File |
373+ File metadata = new File (" /path/to/file" ); // File |
238374 try {
239- ApiResponse<Void > response = apiInstance. uploadPostWithHttpInfo(_file);
375+ ApiResponse<UploadPostDefaultResponse > response = apiInstance. uploadPostWithHttpInfo(_file, metadata );
240376 System . out. println(" Status code: " + response. getStatusCode());
241377 System . out. println(" Response headers: " + response. getHeaders());
378+ System . out. println(" Response body: " + response. getData());
242379 } catch (ApiException e) {
243380 System . err. println(" Exception when calling DefaultApi#uploadPost" );
244381 System . err. println(" Status code: " + e. getCode());
@@ -255,12 +392,13 @@ public class Example {
255392
256393| Name | Type | Description | Notes |
257394| ------------- | ------------- | ------------- | -------------|
258- | ** _ file** | ** File** | | [ optional] |
395+ | ** _ file** | ** File** | | |
396+ | ** metadata** | ** File** | | [ optional] |
259397
260398### Return type
261399
400+ ApiResponse<[ ** UploadPostDefaultResponse** ] ( UploadPostDefaultResponse.md ) >
262401
263- ApiResponse<Void >
264402
265403### Authorization
266404
@@ -269,7 +407,7 @@ No authorization required
269407### HTTP request headers
270408
271409- ** Content-Type** : multipart/form-data
272- - ** Accept** : Not defined
410+ - ** Accept** : application/json
273411
274412### HTTP response details
275413| Status code | Description | Response headers |
0 commit comments