Skip to content

Commit 70bccf8

Browse files
committed
regenerated samples
1 parent 0cade09 commit 70bccf8

File tree

23 files changed

+321
-91
lines changed

23 files changed

+321
-91
lines changed

samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/AuthApi.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,17 @@
4646

4747
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.15.0-SNAPSHOT")
4848
public class AuthApi {
49+
/**
50+
* Utility class for extending HttpRequest.Builder functionality.
51+
*/
4952
private static class HttpRequestBuilderExtensions {
53+
/**
54+
* Adds additional headers to the provided HttpRequest.Builder. Useful for adding method/endpoint specific headers.
55+
*
56+
* @param builder the HttpRequest.Builder to which headers will be added
57+
* @param headers a map of header names and values to add; may be null
58+
* @return the same HttpRequest.Builder instance with the additional headers set
59+
*/
5060
static HttpRequest.Builder withAdditionalHeaders(HttpRequest.Builder builder, Map<String, String> headers) {
5161
if (headers != null) {
5262
for (Map.Entry<String, String> entry : headers.entrySet()) {
@@ -110,7 +120,7 @@ public String testAuthHttpBasic() throws ApiException {
110120
* @throws ApiException if fails to make API call
111121
*/
112122
public String testAuthHttpBasic(Map<String, String> headers) throws ApiException {
113-
ApiResponse<String> localVarResponse = testAuthHttpBasicWithHttpInfo(headers);
123+
ApiResponse<String> localVarResponse = testAuthHttpBasicWithHttpInfo(headers);
114124
return localVarResponse.getData();
115125
}
116126

@@ -208,7 +218,7 @@ public String testAuthHttpBearer() throws ApiException {
208218
* @throws ApiException if fails to make API call
209219
*/
210220
public String testAuthHttpBearer(Map<String, String> headers) throws ApiException {
211-
ApiResponse<String> localVarResponse = testAuthHttpBearerWithHttpInfo(headers);
221+
ApiResponse<String> localVarResponse = testAuthHttpBearerWithHttpInfo(headers);
212222
return localVarResponse.getData();
213223
}
214224

samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/BodyApi.java

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,17 @@
5656

5757
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.15.0-SNAPSHOT")
5858
public class BodyApi {
59+
/**
60+
* Utility class for extending HttpRequest.Builder functionality.
61+
*/
5962
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+
*/
6070
static HttpRequest.Builder withAdditionalHeaders(HttpRequest.Builder builder, Map<String, String> headers) {
6171
if (headers != null) {
6272
for (Map.Entry<String, String> entry : headers.entrySet()) {
@@ -120,7 +130,7 @@ public File testBinaryGif() throws ApiException {
120130
* @throws ApiException if fails to make API call
121131
*/
122132
public File testBinaryGif(Map<String, String> headers) throws ApiException {
123-
ApiResponse<File> localVarResponse = testBinaryGifWithHttpInfo(headers);
133+
ApiResponse<File> localVarResponse = testBinaryGifWithHttpInfo(headers);
124134
return localVarResponse.getData();
125135
}
126136

@@ -223,7 +233,7 @@ public String testBodyApplicationOctetstreamBinary(@javax.annotation.Nullable Fi
223233
* @throws ApiException if fails to make API call
224234
*/
225235
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);
227237
return localVarResponse.getData();
228238
}
229239

@@ -331,7 +341,7 @@ public String testBodyMultipartFormdataArrayOfBinary(@javax.annotation.Nonnull L
331341
* @throws ApiException if fails to make API call
332342
*/
333343
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);
335345
return localVarResponse.getData();
336346
}
337347

@@ -472,7 +482,7 @@ public String testBodyMultipartFormdataSingleBinary(@javax.annotation.Nullable F
472482
* @throws ApiException if fails to make API call
473483
*/
474484
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);
476486
return localVarResponse.getData();
477487
}
478488

@@ -607,7 +617,7 @@ public Pet testEchoBodyAllOfPet(@javax.annotation.Nullable Pet pet) throws ApiEx
607617
* @throws ApiException if fails to make API call
608618
*/
609619
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);
611621
return localVarResponse.getData();
612622
}
613623

@@ -718,7 +728,7 @@ public String testEchoBodyFreeFormObjectResponseString(@javax.annotation.Nullabl
718728
* @throws ApiException if fails to make API call
719729
*/
720730
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);
722732
return localVarResponse.getData();
723733
}
724734

@@ -826,7 +836,7 @@ public Pet testEchoBodyPet(@javax.annotation.Nullable Pet pet) throws ApiExcepti
826836
* @throws ApiException if fails to make API call
827837
*/
828838
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);
830840
return localVarResponse.getData();
831841
}
832842

@@ -937,7 +947,7 @@ public String testEchoBodyPetResponseString(@javax.annotation.Nullable Pet pet)
937947
* @throws ApiException if fails to make API call
938948
*/
939949
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);
941951
return localVarResponse.getData();
942952
}
943953

@@ -1045,7 +1055,7 @@ public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String bo
10451055
* @throws ApiException if fails to make API call
10461056
*/
10471057
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);
10491059
return localVarResponse.getData();
10501060
}
10511061

@@ -1156,7 +1166,7 @@ public String testEchoBodyTagResponseString(@javax.annotation.Nullable Tag tag)
11561166
* @throws ApiException if fails to make API call
11571167
*/
11581168
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);
11601170
return localVarResponse.getData();
11611171
}
11621172

samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/FormApi.java

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,17 @@
5353

5454
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.15.0-SNAPSHOT")
5555
public class FormApi {
56+
/**
57+
* Utility class for extending HttpRequest.Builder functionality.
58+
*/
5659
private static class HttpRequestBuilderExtensions {
60+
/**
61+
* Adds additional headers to the provided HttpRequest.Builder. Useful for adding method/endpoint specific headers.
62+
*
63+
* @param builder the HttpRequest.Builder to which headers will be added
64+
* @param headers a map of header names and values to add; may be null
65+
* @return the same HttpRequest.Builder instance with the additional headers set
66+
*/
5767
static HttpRequest.Builder withAdditionalHeaders(HttpRequest.Builder builder, Map<String, String> headers) {
5868
if (headers != null) {
5969
for (Map.Entry<String, String> entry : headers.entrySet()) {
@@ -123,7 +133,7 @@ public String testFormIntegerBooleanString(@javax.annotation.Nullable Integer in
123133
* @throws ApiException if fails to make API call
124134
*/
125135
public String testFormIntegerBooleanString(@javax.annotation.Nullable Integer integerForm, @javax.annotation.Nullable Boolean booleanForm, @javax.annotation.Nullable String stringForm, Map<String, String> headers) throws ApiException {
126-
ApiResponse<String> localVarResponse = testFormIntegerBooleanStringWithHttpInfo(integerForm, booleanForm, stringForm, headers);
136+
ApiResponse<String> localVarResponse = testFormIntegerBooleanStringWithHttpInfo(integerForm, booleanForm, stringForm, headers);
127137
return localVarResponse.getData();
128138
}
129139

@@ -249,7 +259,7 @@ public String testFormObjectMultipart(@javax.annotation.Nonnull TestFormObjectMu
249259
* @throws ApiException if fails to make API call
250260
*/
251261
public String testFormObjectMultipart(@javax.annotation.Nonnull TestFormObjectMultipartRequestMarker marker, Map<String, String> headers) throws ApiException {
252-
ApiResponse<String> localVarResponse = testFormObjectMultipartWithHttpInfo(marker, headers);
262+
ApiResponse<String> localVarResponse = testFormObjectMultipartWithHttpInfo(marker, headers);
253263
return localVarResponse.getData();
254264
}
255265

@@ -399,7 +409,7 @@ public String testFormOneof(@javax.annotation.Nullable String form1, @javax.anno
399409
* @throws ApiException if fails to make API call
400410
*/
401411
public String testFormOneof(@javax.annotation.Nullable String form1, @javax.annotation.Nullable Integer form2, @javax.annotation.Nullable String form3, @javax.annotation.Nullable Boolean form4, @javax.annotation.Nullable Long id, @javax.annotation.Nullable String name, Map<String, String> headers) throws ApiException {
402-
ApiResponse<String> localVarResponse = testFormOneofWithHttpInfo(form1, form2, form3, form4, id, name, headers);
412+
ApiResponse<String> localVarResponse = testFormOneofWithHttpInfo(form1, form2, form3, form4, id, name, headers);
403413
return localVarResponse.getData();
404414
}
405415

samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/HeaderApi.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,17 @@
5353

5454
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.15.0-SNAPSHOT")
5555
public class HeaderApi {
56+
/**
57+
* Utility class for extending HttpRequest.Builder functionality.
58+
*/
5659
private static class HttpRequestBuilderExtensions {
60+
/**
61+
* Adds additional headers to the provided HttpRequest.Builder. Useful for adding method/endpoint specific headers.
62+
*
63+
* @param builder the HttpRequest.Builder to which headers will be added
64+
* @param headers a map of header names and values to add; may be null
65+
* @return the same HttpRequest.Builder instance with the additional headers set
66+
*/
5767
static HttpRequest.Builder withAdditionalHeaders(HttpRequest.Builder builder, Map<String, String> headers) {
5868
if (headers != null) {
5969
for (Map.Entry<String, String> entry : headers.entrySet()) {
@@ -127,7 +137,7 @@ public String testHeaderIntegerBooleanStringEnums(@javax.annotation.Nullable Int
127137
* @throws ApiException if fails to make API call
128138
*/
129139
public String testHeaderIntegerBooleanStringEnums(@javax.annotation.Nullable Integer integerHeader, @javax.annotation.Nullable Boolean booleanHeader, @javax.annotation.Nullable String stringHeader, @javax.annotation.Nullable String enumNonrefStringHeader, @javax.annotation.Nullable StringEnumRef enumRefStringHeader, Map<String, String> headers) throws ApiException {
130-
ApiResponse<String> localVarResponse = testHeaderIntegerBooleanStringEnumsWithHttpInfo(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader, headers);
140+
ApiResponse<String> localVarResponse = testHeaderIntegerBooleanStringEnumsWithHttpInfo(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader, headers);
131141
return localVarResponse.getData();
132142
}
133143

samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/PathApi.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,17 @@
5353

5454
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.15.0-SNAPSHOT")
5555
public class PathApi {
56+
/**
57+
* Utility class for extending HttpRequest.Builder functionality.
58+
*/
5659
private static class HttpRequestBuilderExtensions {
60+
/**
61+
* Adds additional headers to the provided HttpRequest.Builder. Useful for adding method/endpoint specific headers.
62+
*
63+
* @param builder the HttpRequest.Builder to which headers will be added
64+
* @param headers a map of header names and values to add; may be null
65+
* @return the same HttpRequest.Builder instance with the additional headers set
66+
*/
5767
static HttpRequest.Builder withAdditionalHeaders(HttpRequest.Builder builder, Map<String, String> headers) {
5868
if (headers != null) {
5969
for (Map.Entry<String, String> entry : headers.entrySet()) {
@@ -125,7 +135,7 @@ public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnu
125135
* @throws ApiException if fails to make API call
126136
*/
127137
public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(@javax.annotation.Nonnull String pathString, @javax.annotation.Nonnull Integer pathInteger, @javax.annotation.Nonnull String enumNonrefStringPath, @javax.annotation.Nonnull StringEnumRef enumRefStringPath, Map<String, String> headers) throws ApiException {
128-
ApiResponse<String> localVarResponse = testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath, headers);
138+
ApiResponse<String> localVarResponse = testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath, headers);
129139
return localVarResponse.getData();
130140
}
131141

0 commit comments

Comments
 (0)