|
20 | 20 | import org.openapitools.client.model.*; |
21 | 21 | import org.openapitools.client.Pair; |
22 | 22 |
|
| 23 | +import java.io.File; |
23 | 24 | import org.openapitools.client.model.Pet; |
24 | 25 |
|
25 | 26 |
|
@@ -52,6 +53,73 @@ public void setApiClient(ApiClient apiClient) { |
52 | 53 | this.apiClient = apiClient; |
53 | 54 | } |
54 | 55 |
|
| 56 | + /** |
| 57 | + * Test binary (gif) response body |
| 58 | + * Test binary (gif) response body |
| 59 | + * @return File |
| 60 | + * @throws ApiException if fails to make API call |
| 61 | + */ |
| 62 | + public File testBinaryGif() throws ApiException { |
| 63 | + return this.testBinaryGif(Collections.emptyMap()); |
| 64 | + } |
| 65 | + |
| 66 | + |
| 67 | + /** |
| 68 | + * Test binary (gif) response body |
| 69 | + * Test binary (gif) response body |
| 70 | + * @param additionalHeaders additionalHeaders for this call |
| 71 | + * @return File |
| 72 | + * @throws ApiException if fails to make API call |
| 73 | + */ |
| 74 | + public File testBinaryGif(Map<String, String> additionalHeaders) throws ApiException { |
| 75 | + Object localVarPostBody = null; |
| 76 | + |
| 77 | + // create path and map variables |
| 78 | + String localVarPath = "/binary/gif"; |
| 79 | + |
| 80 | + StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); |
| 81 | + String localVarQueryParameterBaseName; |
| 82 | + List<Pair> localVarQueryParams = new ArrayList<Pair>(); |
| 83 | + List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); |
| 84 | + Map<String, String> localVarHeaderParams = new HashMap<String, String>(); |
| 85 | + Map<String, String> localVarCookieParams = new HashMap<String, String>(); |
| 86 | + Map<String, Object> localVarFormParams = new HashMap<String, Object>(); |
| 87 | + |
| 88 | + |
| 89 | + localVarHeaderParams.putAll(additionalHeaders); |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + final String[] localVarAccepts = { |
| 94 | + "image/gif" |
| 95 | + }; |
| 96 | + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); |
| 97 | + |
| 98 | + final String[] localVarContentTypes = { |
| 99 | + |
| 100 | + }; |
| 101 | + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); |
| 102 | + |
| 103 | + String[] localVarAuthNames = new String[] { }; |
| 104 | + |
| 105 | + TypeReference<File> localVarReturnType = new TypeReference<File>() {}; |
| 106 | + return apiClient.invokeAPI( |
| 107 | + localVarPath, |
| 108 | + "POST", |
| 109 | + localVarQueryParams, |
| 110 | + localVarCollectionQueryParams, |
| 111 | + localVarQueryStringJoiner.toString(), |
| 112 | + localVarPostBody, |
| 113 | + localVarHeaderParams, |
| 114 | + localVarCookieParams, |
| 115 | + localVarFormParams, |
| 116 | + localVarAccept, |
| 117 | + localVarContentType, |
| 118 | + localVarAuthNames, |
| 119 | + localVarReturnType |
| 120 | + ); |
| 121 | + } |
| 122 | + |
55 | 123 | /** |
56 | 124 | * Test body parameter(s) |
57 | 125 | * Test body parameter(s) |
|
0 commit comments