|
56 | 56 |
|
57 | 57 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.15.0-SNAPSHOT") |
58 | 58 | public class BodyApi { |
| 59 | + /** |
| 60 | + * Utility class for extending HttpRequest.Builder functionality. |
| 61 | + */ |
59 | 62 | private static class HttpRequestBuilderExtensions { |
| 63 | + /** |
| 64 | + * Adds additional headers to the provided HttpRequest.Builder. Useful for adding method/endpoint specific headers. |
| 65 | + * |
| 66 | + * @param builder the HttpRequest.Builder to which headers will be added |
| 67 | + * @param headers a map of header names and values to add; may be null |
| 68 | + * @return the same HttpRequest.Builder instance with the additional headers set |
| 69 | + */ |
60 | 70 | static HttpRequest.Builder withAdditionalHeaders(HttpRequest.Builder builder, Map<String, String> headers) { |
61 | 71 | if (headers != null) { |
62 | 72 | for (Map.Entry<String, String> entry : headers.entrySet()) { |
@@ -120,7 +130,7 @@ public File testBinaryGif() throws ApiException { |
120 | 130 | * @throws ApiException if fails to make API call |
121 | 131 | */ |
122 | 132 | public File testBinaryGif(Map<String, String> headers) throws ApiException { |
123 | | - ApiResponse<File> localVarResponse = testBinaryGifWithHttpInfo(headers); |
| 133 | + ApiResponse<File> localVarResponse = testBinaryGifWithHttpInfo(headers); |
124 | 134 | return localVarResponse.getData(); |
125 | 135 | } |
126 | 136 |
|
@@ -223,7 +233,7 @@ public String testBodyApplicationOctetstreamBinary(@javax.annotation.Nullable Fi |
223 | 233 | * @throws ApiException if fails to make API call |
224 | 234 | */ |
225 | 235 | public String testBodyApplicationOctetstreamBinary(@javax.annotation.Nullable File body, Map<String, String> headers) throws ApiException { |
226 | | - ApiResponse<String> localVarResponse = testBodyApplicationOctetstreamBinaryWithHttpInfo(body, headers); |
| 236 | + ApiResponse<String> localVarResponse = testBodyApplicationOctetstreamBinaryWithHttpInfo(body, headers); |
227 | 237 | return localVarResponse.getData(); |
228 | 238 | } |
229 | 239 |
|
@@ -331,7 +341,7 @@ public String testBodyMultipartFormdataArrayOfBinary(@javax.annotation.Nonnull L |
331 | 341 | * @throws ApiException if fails to make API call |
332 | 342 | */ |
333 | 343 | public String testBodyMultipartFormdataArrayOfBinary(@javax.annotation.Nonnull List<File> files, Map<String, String> headers) throws ApiException { |
334 | | - ApiResponse<String> localVarResponse = testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(files, headers); |
| 344 | + ApiResponse<String> localVarResponse = testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(files, headers); |
335 | 345 | return localVarResponse.getData(); |
336 | 346 | } |
337 | 347 |
|
@@ -472,7 +482,7 @@ public String testBodyMultipartFormdataSingleBinary(@javax.annotation.Nullable F |
472 | 482 | * @throws ApiException if fails to make API call |
473 | 483 | */ |
474 | 484 | public String testBodyMultipartFormdataSingleBinary(@javax.annotation.Nullable File myFile, Map<String, String> headers) throws ApiException { |
475 | | - ApiResponse<String> localVarResponse = testBodyMultipartFormdataSingleBinaryWithHttpInfo(myFile, headers); |
| 485 | + ApiResponse<String> localVarResponse = testBodyMultipartFormdataSingleBinaryWithHttpInfo(myFile, headers); |
476 | 486 | return localVarResponse.getData(); |
477 | 487 | } |
478 | 488 |
|
@@ -607,7 +617,7 @@ public Pet testEchoBodyAllOfPet(@javax.annotation.Nullable Pet pet) throws ApiEx |
607 | 617 | * @throws ApiException if fails to make API call |
608 | 618 | */ |
609 | 619 | public Pet testEchoBodyAllOfPet(@javax.annotation.Nullable Pet pet, Map<String, String> headers) throws ApiException { |
610 | | - ApiResponse<Pet> localVarResponse = testEchoBodyAllOfPetWithHttpInfo(pet, headers); |
| 620 | + ApiResponse<Pet> localVarResponse = testEchoBodyAllOfPetWithHttpInfo(pet, headers); |
611 | 621 | return localVarResponse.getData(); |
612 | 622 | } |
613 | 623 |
|
@@ -718,7 +728,7 @@ public String testEchoBodyFreeFormObjectResponseString(@javax.annotation.Nullabl |
718 | 728 | * @throws ApiException if fails to make API call |
719 | 729 | */ |
720 | 730 | public String testEchoBodyFreeFormObjectResponseString(@javax.annotation.Nullable Object body, Map<String, String> headers) throws ApiException { |
721 | | - ApiResponse<String> localVarResponse = testEchoBodyFreeFormObjectResponseStringWithHttpInfo(body, headers); |
| 731 | + ApiResponse<String> localVarResponse = testEchoBodyFreeFormObjectResponseStringWithHttpInfo(body, headers); |
722 | 732 | return localVarResponse.getData(); |
723 | 733 | } |
724 | 734 |
|
@@ -826,7 +836,7 @@ public Pet testEchoBodyPet(@javax.annotation.Nullable Pet pet) throws ApiExcepti |
826 | 836 | * @throws ApiException if fails to make API call |
827 | 837 | */ |
828 | 838 | public Pet testEchoBodyPet(@javax.annotation.Nullable Pet pet, Map<String, String> headers) throws ApiException { |
829 | | - ApiResponse<Pet> localVarResponse = testEchoBodyPetWithHttpInfo(pet, headers); |
| 839 | + ApiResponse<Pet> localVarResponse = testEchoBodyPetWithHttpInfo(pet, headers); |
830 | 840 | return localVarResponse.getData(); |
831 | 841 | } |
832 | 842 |
|
@@ -937,7 +947,7 @@ public String testEchoBodyPetResponseString(@javax.annotation.Nullable Pet pet) |
937 | 947 | * @throws ApiException if fails to make API call |
938 | 948 | */ |
939 | 949 | public String testEchoBodyPetResponseString(@javax.annotation.Nullable Pet pet, Map<String, String> headers) throws ApiException { |
940 | | - ApiResponse<String> localVarResponse = testEchoBodyPetResponseStringWithHttpInfo(pet, headers); |
| 950 | + ApiResponse<String> localVarResponse = testEchoBodyPetResponseStringWithHttpInfo(pet, headers); |
941 | 951 | return localVarResponse.getData(); |
942 | 952 | } |
943 | 953 |
|
@@ -1045,7 +1055,7 @@ public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String bo |
1045 | 1055 | * @throws ApiException if fails to make API call |
1046 | 1056 | */ |
1047 | 1057 | public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String body, Map<String, String> headers) throws ApiException { |
1048 | | - ApiResponse<StringEnumRef> localVarResponse = testEchoBodyStringEnumWithHttpInfo(body, headers); |
| 1058 | + ApiResponse<StringEnumRef> localVarResponse = testEchoBodyStringEnumWithHttpInfo(body, headers); |
1049 | 1059 | return localVarResponse.getData(); |
1050 | 1060 | } |
1051 | 1061 |
|
@@ -1156,7 +1166,7 @@ public String testEchoBodyTagResponseString(@javax.annotation.Nullable Tag tag) |
1156 | 1166 | * @throws ApiException if fails to make API call |
1157 | 1167 | */ |
1158 | 1168 | public String testEchoBodyTagResponseString(@javax.annotation.Nullable Tag tag, Map<String, String> headers) throws ApiException { |
1159 | | - ApiResponse<String> localVarResponse = testEchoBodyTagResponseStringWithHttpInfo(tag, headers); |
| 1169 | + ApiResponse<String> localVarResponse = testEchoBodyTagResponseStringWithHttpInfo(tag, headers); |
1160 | 1170 | return localVarResponse.getData(); |
1161 | 1171 | } |
1162 | 1172 |
|
|
0 commit comments