Skip to content

Commit 69f0fd4

Browse files
committed
Update resttemplate samples
1 parent 15d86e1 commit 69f0fd4

29 files changed

Lines changed: 328 additions & 328 deletions

File tree

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public ResponseEntity<File> testBinaryGifWithHttpInfo() throws RestClientExcepti
8787
* @return String
8888
* @throws RestClientException if an error occurs while attempting to invoke the API
8989
*/
90-
public String testBodyApplicationOctetstreamBinary(File body) throws RestClientException {
90+
public String testBodyApplicationOctetstreamBinary(@javax.annotation.Nullable File body) throws RestClientException {
9191
return testBodyApplicationOctetstreamBinaryWithHttpInfo(body).getBody();
9292
}
9393

@@ -99,7 +99,7 @@ public String testBodyApplicationOctetstreamBinary(File body) throws RestClientE
9999
* @return ResponseEntity&lt;String&gt;
100100
* @throws RestClientException if an error occurs while attempting to invoke the API
101101
*/
102-
public ResponseEntity<String> testBodyApplicationOctetstreamBinaryWithHttpInfo(File body) throws RestClientException {
102+
public ResponseEntity<String> testBodyApplicationOctetstreamBinaryWithHttpInfo(@javax.annotation.Nullable File body) throws RestClientException {
103103
Object localVarPostBody = body;
104104

105105

@@ -130,7 +130,7 @@ public ResponseEntity<String> testBodyApplicationOctetstreamBinaryWithHttpInfo(F
130130
* @return String
131131
* @throws RestClientException if an error occurs while attempting to invoke the API
132132
*/
133-
public String testBodyMultipartFormdataArrayOfBinary(List<File> files) throws RestClientException {
133+
public String testBodyMultipartFormdataArrayOfBinary(@javax.annotation.Nonnull List<File> files) throws RestClientException {
134134
return testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(files).getBody();
135135
}
136136

@@ -142,7 +142,7 @@ public String testBodyMultipartFormdataArrayOfBinary(List<File> files) throws Re
142142
* @return ResponseEntity&lt;String&gt;
143143
* @throws RestClientException if an error occurs while attempting to invoke the API
144144
*/
145-
public ResponseEntity<String> testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(List<File> files) throws RestClientException {
145+
public ResponseEntity<String> testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(@javax.annotation.Nonnull List<File> files) throws RestClientException {
146146
Object localVarPostBody = null;
147147

148148
// verify the required parameter 'files' is set
@@ -181,7 +181,7 @@ public ResponseEntity<String> testBodyMultipartFormdataArrayOfBinaryWithHttpInfo
181181
* @return String
182182
* @throws RestClientException if an error occurs while attempting to invoke the API
183183
*/
184-
public String testBodyMultipartFormdataSingleBinary(File myFile) throws RestClientException {
184+
public String testBodyMultipartFormdataSingleBinary(@javax.annotation.Nullable File myFile) throws RestClientException {
185185
return testBodyMultipartFormdataSingleBinaryWithHttpInfo(myFile).getBody();
186186
}
187187

@@ -193,7 +193,7 @@ public String testBodyMultipartFormdataSingleBinary(File myFile) throws RestClie
193193
* @return ResponseEntity&lt;String&gt;
194194
* @throws RestClientException if an error occurs while attempting to invoke the API
195195
*/
196-
public ResponseEntity<String> testBodyMultipartFormdataSingleBinaryWithHttpInfo(File myFile) throws RestClientException {
196+
public ResponseEntity<String> testBodyMultipartFormdataSingleBinaryWithHttpInfo(@javax.annotation.Nullable File myFile) throws RestClientException {
197197
Object localVarPostBody = null;
198198

199199

@@ -227,7 +227,7 @@ public ResponseEntity<String> testBodyMultipartFormdataSingleBinaryWithHttpInfo(
227227
* @return Pet
228228
* @throws RestClientException if an error occurs while attempting to invoke the API
229229
*/
230-
public Pet testEchoBodyAllOfPet(Pet pet) throws RestClientException {
230+
public Pet testEchoBodyAllOfPet(@javax.annotation.Nullable Pet pet) throws RestClientException {
231231
return testEchoBodyAllOfPetWithHttpInfo(pet).getBody();
232232
}
233233

@@ -239,7 +239,7 @@ public Pet testEchoBodyAllOfPet(Pet pet) throws RestClientException {
239239
* @return ResponseEntity&lt;Pet&gt;
240240
* @throws RestClientException if an error occurs while attempting to invoke the API
241241
*/
242-
public ResponseEntity<Pet> testEchoBodyAllOfPetWithHttpInfo(Pet pet) throws RestClientException {
242+
public ResponseEntity<Pet> testEchoBodyAllOfPetWithHttpInfo(@javax.annotation.Nullable Pet pet) throws RestClientException {
243243
Object localVarPostBody = pet;
244244

245245

@@ -270,7 +270,7 @@ public ResponseEntity<Pet> testEchoBodyAllOfPetWithHttpInfo(Pet pet) throws Rest
270270
* @return String
271271
* @throws RestClientException if an error occurs while attempting to invoke the API
272272
*/
273-
public String testEchoBodyFreeFormObjectResponseString(Object body) throws RestClientException {
273+
public String testEchoBodyFreeFormObjectResponseString(@javax.annotation.Nullable Object body) throws RestClientException {
274274
return testEchoBodyFreeFormObjectResponseStringWithHttpInfo(body).getBody();
275275
}
276276

@@ -282,7 +282,7 @@ public String testEchoBodyFreeFormObjectResponseString(Object body) throws RestC
282282
* @return ResponseEntity&lt;String&gt;
283283
* @throws RestClientException if an error occurs while attempting to invoke the API
284284
*/
285-
public ResponseEntity<String> testEchoBodyFreeFormObjectResponseStringWithHttpInfo(Object body) throws RestClientException {
285+
public ResponseEntity<String> testEchoBodyFreeFormObjectResponseStringWithHttpInfo(@javax.annotation.Nullable Object body) throws RestClientException {
286286
Object localVarPostBody = body;
287287

288288

@@ -313,7 +313,7 @@ public ResponseEntity<String> testEchoBodyFreeFormObjectResponseStringWithHttpIn
313313
* @return Pet
314314
* @throws RestClientException if an error occurs while attempting to invoke the API
315315
*/
316-
public Pet testEchoBodyPet(Pet pet) throws RestClientException {
316+
public Pet testEchoBodyPet(@javax.annotation.Nullable Pet pet) throws RestClientException {
317317
return testEchoBodyPetWithHttpInfo(pet).getBody();
318318
}
319319

@@ -325,7 +325,7 @@ public Pet testEchoBodyPet(Pet pet) throws RestClientException {
325325
* @return ResponseEntity&lt;Pet&gt;
326326
* @throws RestClientException if an error occurs while attempting to invoke the API
327327
*/
328-
public ResponseEntity<Pet> testEchoBodyPetWithHttpInfo(Pet pet) throws RestClientException {
328+
public ResponseEntity<Pet> testEchoBodyPetWithHttpInfo(@javax.annotation.Nullable Pet pet) throws RestClientException {
329329
Object localVarPostBody = pet;
330330

331331

@@ -356,7 +356,7 @@ public ResponseEntity<Pet> testEchoBodyPetWithHttpInfo(Pet pet) throws RestClien
356356
* @return String
357357
* @throws RestClientException if an error occurs while attempting to invoke the API
358358
*/
359-
public String testEchoBodyPetResponseString(Pet pet) throws RestClientException {
359+
public String testEchoBodyPetResponseString(@javax.annotation.Nullable Pet pet) throws RestClientException {
360360
return testEchoBodyPetResponseStringWithHttpInfo(pet).getBody();
361361
}
362362

@@ -368,7 +368,7 @@ public String testEchoBodyPetResponseString(Pet pet) throws RestClientException
368368
* @return ResponseEntity&lt;String&gt;
369369
* @throws RestClientException if an error occurs while attempting to invoke the API
370370
*/
371-
public ResponseEntity<String> testEchoBodyPetResponseStringWithHttpInfo(Pet pet) throws RestClientException {
371+
public ResponseEntity<String> testEchoBodyPetResponseStringWithHttpInfo(@javax.annotation.Nullable Pet pet) throws RestClientException {
372372
Object localVarPostBody = pet;
373373

374374

@@ -399,7 +399,7 @@ public ResponseEntity<String> testEchoBodyPetResponseStringWithHttpInfo(Pet pet)
399399
* @return StringEnumRef
400400
* @throws RestClientException if an error occurs while attempting to invoke the API
401401
*/
402-
public StringEnumRef testEchoBodyStringEnum(String body) throws RestClientException {
402+
public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String body) throws RestClientException {
403403
return testEchoBodyStringEnumWithHttpInfo(body).getBody();
404404
}
405405

@@ -411,7 +411,7 @@ public StringEnumRef testEchoBodyStringEnum(String body) throws RestClientExcept
411411
* @return ResponseEntity&lt;StringEnumRef&gt;
412412
* @throws RestClientException if an error occurs while attempting to invoke the API
413413
*/
414-
public ResponseEntity<StringEnumRef> testEchoBodyStringEnumWithHttpInfo(String body) throws RestClientException {
414+
public ResponseEntity<StringEnumRef> testEchoBodyStringEnumWithHttpInfo(@javax.annotation.Nullable String body) throws RestClientException {
415415
Object localVarPostBody = body;
416416

417417

@@ -442,7 +442,7 @@ public ResponseEntity<StringEnumRef> testEchoBodyStringEnumWithHttpInfo(String b
442442
* @return String
443443
* @throws RestClientException if an error occurs while attempting to invoke the API
444444
*/
445-
public String testEchoBodyTagResponseString(Tag tag) throws RestClientException {
445+
public String testEchoBodyTagResponseString(@javax.annotation.Nullable Tag tag) throws RestClientException {
446446
return testEchoBodyTagResponseStringWithHttpInfo(tag).getBody();
447447
}
448448

@@ -454,7 +454,7 @@ public String testEchoBodyTagResponseString(Tag tag) throws RestClientException
454454
* @return ResponseEntity&lt;String&gt;
455455
* @throws RestClientException if an error occurs while attempting to invoke the API
456456
*/
457-
public ResponseEntity<String> testEchoBodyTagResponseStringWithHttpInfo(Tag tag) throws RestClientException {
457+
public ResponseEntity<String> testEchoBodyTagResponseStringWithHttpInfo(@javax.annotation.Nullable Tag tag) throws RestClientException {
458458
Object localVarPostBody = tag;
459459

460460

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public FormApi(ApiClient apiClient) {
4747
* @return String
4848
* @throws RestClientException if an error occurs while attempting to invoke the API
4949
*/
50-
public String testFormIntegerBooleanString(Integer integerForm, Boolean booleanForm, String stringForm) throws RestClientException {
50+
public String testFormIntegerBooleanString(@javax.annotation.Nullable Integer integerForm, @javax.annotation.Nullable Boolean booleanForm, @javax.annotation.Nullable String stringForm) throws RestClientException {
5151
return testFormIntegerBooleanStringWithHttpInfo(integerForm, booleanForm, stringForm).getBody();
5252
}
5353

@@ -61,7 +61,7 @@ public String testFormIntegerBooleanString(Integer integerForm, Boolean booleanF
6161
* @return ResponseEntity&lt;String&gt;
6262
* @throws RestClientException if an error occurs while attempting to invoke the API
6363
*/
64-
public ResponseEntity<String> testFormIntegerBooleanStringWithHttpInfo(Integer integerForm, Boolean booleanForm, String stringForm) throws RestClientException {
64+
public ResponseEntity<String> testFormIntegerBooleanStringWithHttpInfo(@javax.annotation.Nullable Integer integerForm, @javax.annotation.Nullable Boolean booleanForm, @javax.annotation.Nullable String stringForm) throws RestClientException {
6565
Object localVarPostBody = null;
6666

6767

@@ -99,7 +99,7 @@ public ResponseEntity<String> testFormIntegerBooleanStringWithHttpInfo(Integer i
9999
* @return String
100100
* @throws RestClientException if an error occurs while attempting to invoke the API
101101
*/
102-
public String testFormObjectMultipart(TestFormObjectMultipartRequestMarker marker) throws RestClientException {
102+
public String testFormObjectMultipart(@javax.annotation.Nonnull TestFormObjectMultipartRequestMarker marker) throws RestClientException {
103103
return testFormObjectMultipartWithHttpInfo(marker).getBody();
104104
}
105105

@@ -111,7 +111,7 @@ public String testFormObjectMultipart(TestFormObjectMultipartRequestMarker marke
111111
* @return ResponseEntity&lt;String&gt;
112112
* @throws RestClientException if an error occurs while attempting to invoke the API
113113
*/
114-
public ResponseEntity<String> testFormObjectMultipartWithHttpInfo(TestFormObjectMultipartRequestMarker marker) throws RestClientException {
114+
public ResponseEntity<String> testFormObjectMultipartWithHttpInfo(@javax.annotation.Nonnull TestFormObjectMultipartRequestMarker marker) throws RestClientException {
115115
Object localVarPostBody = null;
116116

117117
// verify the required parameter 'marker' is set
@@ -155,7 +155,7 @@ public ResponseEntity<String> testFormObjectMultipartWithHttpInfo(TestFormObject
155155
* @return String
156156
* @throws RestClientException if an error occurs while attempting to invoke the API
157157
*/
158-
public String testFormOneof(String form1, Integer form2, String form3, Boolean form4, Long id, String name) throws RestClientException {
158+
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) throws RestClientException {
159159
return testFormOneofWithHttpInfo(form1, form2, form3, form4, id, name).getBody();
160160
}
161161

@@ -172,7 +172,7 @@ public String testFormOneof(String form1, Integer form2, String form3, Boolean f
172172
* @return ResponseEntity&lt;String&gt;
173173
* @throws RestClientException if an error occurs while attempting to invoke the API
174174
*/
175-
public ResponseEntity<String> testFormOneofWithHttpInfo(String form1, Integer form2, String form3, Boolean form4, Long id, String name) throws RestClientException {
175+
public ResponseEntity<String> testFormOneofWithHttpInfo(@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) throws RestClientException {
176176
Object localVarPostBody = null;
177177

178178

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public HeaderApi(ApiClient apiClient) {
4949
* @return String
5050
* @throws RestClientException if an error occurs while attempting to invoke the API
5151
*/
52-
public String testHeaderIntegerBooleanStringEnums(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader) throws RestClientException {
52+
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) throws RestClientException {
5353
return testHeaderIntegerBooleanStringEnumsWithHttpInfo(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader).getBody();
5454
}
5555

@@ -65,7 +65,7 @@ public String testHeaderIntegerBooleanStringEnums(Integer integerHeader, Boolean
6565
* @return ResponseEntity&lt;String&gt;
6666
* @throws RestClientException if an error occurs while attempting to invoke the API
6767
*/
68-
public ResponseEntity<String> testHeaderIntegerBooleanStringEnumsWithHttpInfo(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader) throws RestClientException {
68+
public ResponseEntity<String> testHeaderIntegerBooleanStringEnumsWithHttpInfo(@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) throws RestClientException {
6969
Object localVarPostBody = null;
7070

7171

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public PathApi(ApiClient apiClient) {
4848
* @return String
4949
* @throws RestClientException if an error occurs while attempting to invoke the API
5050
*/
51-
public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath) throws RestClientException {
51+
public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(@javax.annotation.Nonnull String pathString, @javax.annotation.Nonnull Integer pathInteger, @javax.annotation.Nonnull String enumNonrefStringPath, @javax.annotation.Nonnull StringEnumRef enumRefStringPath) throws RestClientException {
5252
return testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath).getBody();
5353
}
5454

@@ -63,7 +63,7 @@ public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnu
6363
* @return ResponseEntity&lt;String&gt;
6464
* @throws RestClientException if an error occurs while attempting to invoke the API
6565
*/
66-
public ResponseEntity<String> testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath) throws RestClientException {
66+
public ResponseEntity<String> testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(@javax.annotation.Nonnull String pathString, @javax.annotation.Nonnull Integer pathInteger, @javax.annotation.Nonnull String enumNonrefStringPath, @javax.annotation.Nonnull StringEnumRef enumRefStringPath) throws RestClientException {
6767
Object localVarPostBody = null;
6868

6969
// verify the required parameter 'pathString' is set

0 commit comments

Comments
 (0)