@@ -25,7 +25,6 @@ Method | HTTP request | Description
25
25
26
26
> createXmlItem(xmlItem)
27
27
28
-
29
28
creates an XmlItem
30
29
31
30
this route creates an XmlItem
@@ -47,10 +46,8 @@ public class Example {
47
46
48
47
FakeApi apiInstance = new FakeApi (defaultClient);
49
48
XmlItem xmlItem = new XmlItem (); // XmlItem | XmlItem Body
50
- try {
49
+ try {
51
50
apiInstance. createXmlItem(xmlItem);
52
-
53
-
54
51
} catch (ApiException e) {
55
52
System . err. println(" Exception when calling FakeApi#createXmlItem" );
56
53
System . err. println(" Status code: " + e. getCode());
@@ -94,7 +91,6 @@ No authorization required
94
91
95
92
96
93
97
-
98
94
Test serialization of outer boolean types
99
95
100
96
### Example
@@ -114,9 +110,8 @@ public class Example {
114
110
115
111
FakeApi apiInstance = new FakeApi (defaultClient);
116
112
Boolean body = true ; // Boolean | Input boolean as post body
117
- try {
113
+ try {
118
114
Boolean result = apiInstance. fakeOuterBooleanSerialize(body);
119
-
120
115
System . out. println(result);
121
116
} catch (ApiException e) {
122
117
System . err. println(" Exception when calling FakeApi#fakeOuterBooleanSerialize" );
@@ -161,7 +156,6 @@ No authorization required
161
156
162
157
163
158
164
-
165
159
Test serialization of object with outer number type
166
160
167
161
### Example
@@ -181,9 +175,8 @@ public class Example {
181
175
182
176
FakeApi apiInstance = new FakeApi (defaultClient);
183
177
OuterComposite body = new OuterComposite (); // OuterComposite | Input composite as post body
184
- try {
178
+ try {
185
179
OuterComposite result = apiInstance. fakeOuterCompositeSerialize(body);
186
-
187
180
System . out. println(result);
188
181
} catch (ApiException e) {
189
182
System . err. println(" Exception when calling FakeApi#fakeOuterCompositeSerialize" );
@@ -228,7 +221,6 @@ No authorization required
228
221
229
222
230
223
231
-
232
224
Test serialization of outer number types
233
225
234
226
### Example
@@ -248,9 +240,8 @@ public class Example {
248
240
249
241
FakeApi apiInstance = new FakeApi (defaultClient);
250
242
BigDecimal body = new BigDecimal (); // BigDecimal | Input number as post body
251
- try {
243
+ try {
252
244
BigDecimal result = apiInstance. fakeOuterNumberSerialize(body);
253
-
254
245
System . out. println(result);
255
246
} catch (ApiException e) {
256
247
System . err. println(" Exception when calling FakeApi#fakeOuterNumberSerialize" );
@@ -295,7 +286,6 @@ No authorization required
295
286
296
287
297
288
298
-
299
289
Test serialization of outer string types
300
290
301
291
### Example
@@ -315,9 +305,8 @@ public class Example {
315
305
316
306
FakeApi apiInstance = new FakeApi (defaultClient);
317
307
String body = " body_example" ; // String | Input string as post body
318
- try {
308
+ try {
319
309
String result = apiInstance. fakeOuterStringSerialize(body);
320
-
321
310
System . out. println(result);
322
311
} catch (ApiException e) {
323
312
System . err. println(" Exception when calling FakeApi#fakeOuterStringSerialize" );
@@ -362,7 +351,6 @@ No authorization required
362
351
363
352
364
353
365
-
366
354
For this test, the body for this request much reference a schema named ` File ` .
367
355
368
356
### Example
@@ -382,10 +370,8 @@ public class Example {
382
370
383
371
FakeApi apiInstance = new FakeApi (defaultClient);
384
372
FileSchemaTestClass body = new FileSchemaTestClass (); // FileSchemaTestClass |
385
- try {
373
+ try {
386
374
apiInstance. testBodyWithFileSchema(body);
387
-
388
-
389
375
} catch (ApiException e) {
390
376
System . err. println(" Exception when calling FakeApi#testBodyWithFileSchema" );
391
377
System . err. println(" Status code: " + e. getCode());
@@ -429,7 +415,6 @@ No authorization required
429
415
430
416
431
417
432
-
433
418
### Example
434
419
435
420
``` java
@@ -448,10 +433,8 @@ public class Example {
448
433
FakeApi apiInstance = new FakeApi (defaultClient);
449
434
String query = " query_example" ; // String |
450
435
User body = new User (); // User |
451
- try {
436
+ try {
452
437
apiInstance. testBodyWithQueryParams(query, body);
453
-
454
-
455
438
} catch (ApiException e) {
456
439
System . err. println(" Exception when calling FakeApi#testBodyWithQueryParams" );
457
440
System . err. println(" Status code: " + e. getCode());
@@ -494,7 +477,6 @@ No authorization required
494
477
495
478
> Client testClientModel(body)
496
479
497
-
498
480
To test \& quot;client\& quot; model
499
481
500
482
To test "client" model
@@ -516,9 +498,8 @@ public class Example {
516
498
517
499
FakeApi apiInstance = new FakeApi (defaultClient);
518
500
Client body = new Client (); // Client | client model
519
- try {
501
+ try {
520
502
Client result = apiInstance. testClientModel(body);
521
-
522
503
System . out. println(result);
523
504
} catch (ApiException e) {
524
505
System . err. println(" Exception when calling FakeApi#testClientModel" );
@@ -561,7 +542,6 @@ No authorization required
561
542
562
543
> testEndpointParameters(number, _ double, patternWithoutDelimiter, _ byte, integer, int32, int64, _ float, string, binary, date, dateTime, password, paramCallback)
563
544
564
-
565
545
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
566
546
567
547
Fake endpoint for testing various parameters
@@ -605,10 +585,8 @@ public class Example {
605
585
OffsetDateTime dateTime = new OffsetDateTime (); // OffsetDateTime | None
606
586
String password = " password_example" ; // String | None
607
587
String paramCallback = " paramCallback_example" ; // String | None
608
- try {
588
+ try {
609
589
apiInstance. testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
610
-
611
-
612
590
} catch (ApiException e) {
613
591
System . err. println(" Exception when calling FakeApi#testEndpointParameters" );
614
592
System . err. println(" Status code: " + e. getCode());
@@ -664,7 +642,6 @@ null (empty response body)
664
642
665
643
> testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString)
666
644
667
-
668
645
To test enum parameters
669
646
670
647
To test enum parameters
@@ -693,10 +670,8 @@ public class Example {
693
670
Double enumQueryDouble = 3.4D ; // Double | Query parameter enum test (double)
694
671
List<String > enumFormStringArray = " $" ; // List<String> | Form parameter enum test (string array)
695
672
String enumFormString = " -efg" ; // String | Form parameter enum test (string)
696
- try {
673
+ try {
697
674
apiInstance. testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
698
-
699
-
700
675
} catch (ApiException e) {
701
676
System . err. println(" Exception when calling FakeApi#testEnumParameters" );
702
677
System . err. println(" Status code: " + e. getCode());
@@ -744,7 +719,6 @@ No authorization required
744
719
745
720
## testGroupParameters
746
721
747
-
748
722
> testGroupParameters().requiredStringGroup(requiredStringGroup).requiredBooleanGroup(requiredBooleanGroup).requiredInt64Group(requiredInt64Group).stringGroup(stringGroup).booleanGroup(booleanGroup).int64Group(int64Group).execute();
749
723
750
724
Fake endpoint to test group parameters (optional)
@@ -773,7 +747,7 @@ public class Example {
773
747
Integer stringGroup = 56 ; // Integer | String in group parameters
774
748
Boolean booleanGroup = true ; // Boolean | Boolean in group parameters
775
749
Long int64Group = 56L ; // Long | Integer in group parameters
776
- try {
750
+ try {
777
751
api. testGroupParameters()
778
752
.requiredStringGroup(requiredStringGroup)
779
753
.requiredBooleanGroup(requiredBooleanGroup)
@@ -782,7 +756,6 @@ public class Example {
782
756
.booleanGroup(booleanGroup)
783
757
.int64Group(int64Group)
784
758
.execute();
785
-
786
759
} catch (ApiException e) {
787
760
System . err. println(" Exception when calling FakeApi#testGroupParameters" );
788
761
System . err. println(" Status code: " + e. getCode());
@@ -829,7 +802,6 @@ No authorization required
829
802
830
803
> testInlineAdditionalProperties(param)
831
804
832
-
833
805
test inline additionalProperties
834
806
835
807
### Example
@@ -849,10 +821,8 @@ public class Example {
849
821
850
822
FakeApi apiInstance = new FakeApi (defaultClient);
851
823
Map<String , String > param = new HashMap (); // Map<String, String> | request body
852
- try {
824
+ try {
853
825
apiInstance. testInlineAdditionalProperties(param);
854
-
855
-
856
826
} catch (ApiException e) {
857
827
System . err. println(" Exception when calling FakeApi#testInlineAdditionalProperties" );
858
828
System . err. println(" Status code: " + e. getCode());
@@ -894,7 +864,6 @@ No authorization required
894
864
895
865
> testJsonFormData(param, param2)
896
866
897
-
898
867
test json serialization of form data
899
868
900
869
### Example
@@ -915,10 +884,8 @@ public class Example {
915
884
FakeApi apiInstance = new FakeApi (defaultClient);
916
885
String param = " param_example" ; // String | field1
917
886
String param2 = " param2_example" ; // String | field2
918
- try {
887
+ try {
919
888
apiInstance. testJsonFormData(param, param2);
920
-
921
-
922
889
} catch (ApiException e) {
923
890
System . err. println(" Exception when calling FakeApi#testJsonFormData" );
924
891
System . err. println(" Status code: " + e. getCode());
@@ -963,7 +930,6 @@ No authorization required
963
930
964
931
965
932
966
-
967
933
To test the collection format in query parameters
968
934
969
935
### Example
@@ -987,10 +953,8 @@ public class Example {
987
953
List<String > http = Arrays . asList(); // List<String> |
988
954
List<String > url = Arrays . asList(); // List<String> |
989
955
List<String > context = Arrays . asList(); // List<String> |
990
- try {
956
+ try {
991
957
apiInstance. testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
992
-
993
-
994
958
} catch (ApiException e) {
995
959
System . err. println(" Exception when calling FakeApi#testQueryParameterCollectionFormat" );
996
960
System . err. println(" Status code: " + e. getCode());
0 commit comments