Skip to content

Commit 8771407

Browse files
authored
Merge pull request #11138 from swagger-api/java-resttemplate-sample-update
updated java resttemplate samples
2 parents c0e872f + b0c2a03 commit 8771407

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1846
-524
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.26-SNAPSHOT
1+
3.0.28-SNAPSHOT
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# AnimalAnimalIdBody
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**name** | **String** | Updated name of the animal | [optional]
7+
**status** | **String** | Updated status of the animal | [optional]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# DogDogIdBody
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**name** | **String** | Updated name of the dog | [optional]
7+
**status** | **String** | Updated status of the dog | [optional]
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# EnumFormBody
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**enumFormStringArray** | [**List<EnumFormStringArrayEnum>**](#List<EnumFormStringArrayEnum>) | Form parameter enum test (string array) | [optional]
7+
**enumFormString** | [**EnumFormStringEnum**](#EnumFormStringEnum) | Form parameter enum test (string) | [optional]
8+
**enumQueryDouble** | [**EnumQueryDoubleEnum**](#EnumQueryDoubleEnum) | Query parameter enum test (double) | [optional]
9+
10+
<a name="List<EnumFormStringArrayEnum>"></a>
11+
## Enum: List&lt;EnumFormStringArrayEnum&gt;
12+
Name | Value
13+
---- | -----
14+
GREATER_THAN | &quot;&gt;&quot;
15+
DOLLAR | &quot;$&quot;
16+
17+
<a name="EnumFormStringEnum"></a>
18+
## Enum: EnumFormStringEnum
19+
Name | Value
20+
---- | -----
21+
_ABC | &quot;_abc&quot;
22+
_EFG | &quot;-efg&quot;
23+
_XYZ_ | &quot;(xyz)&quot;
24+
25+
<a name="EnumQueryDoubleEnum"></a>
26+
## Enum: EnumQueryDoubleEnum
27+
Name | Value
28+
---- | -----
29+
NUMBER_1_DOT_1 | 1.1
30+
NUMBER_MINUS_1_DOT_2 | -1.2

samples/client/petstore/java/resttemplate-withXml/docs/FakeApi.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ http_basic_test.setUsername("YOUR USERNAME");
264264
http_basic_test.setPassword("YOUR PASSWORD");
265265

266266
FakeApi apiInstance = new FakeApi();
267-
Body2 body = new Body2(); // Body2 |
267+
FakeBody body = new FakeBody(); // FakeBody |
268268
try {
269269
apiInstance.testEndpointParameters(body);
270270
} catch (ApiException e) {
@@ -277,7 +277,7 @@ try {
277277

278278
Name | Type | Description | Notes
279279
------------- | ------------- | ------------- | -------------
280-
**body** | [**Body2**](Body2.md)| |
280+
**body** | [**FakeBody**](FakeBody.md)| |
281281

282282
### Return type
283283

@@ -360,7 +360,7 @@ To test enum parameters
360360

361361

362362
FakeApi apiInstance = new FakeApi();
363-
Body4 body = new Body4(); // Body4 |
363+
EnumFormBody body = new EnumFormBody(); // EnumFormBody |
364364
try {
365365
apiInstance.testEnumRequestBody(body);
366366
} catch (ApiException e) {
@@ -373,7 +373,7 @@ try {
373373

374374
Name | Type | Description | Notes
375375
------------- | ------------- | ------------- | -------------
376-
**body** | [**Body4**](Body4.md)| | [optional]
376+
**body** | [**EnumFormBody**](EnumFormBody.md)| | [optional]
377377

378378
### Return type
379379

@@ -444,7 +444,7 @@ test json serialization of form data
444444

445445

446446
FakeApi apiInstance = new FakeApi();
447-
Body5 body = new Body5(); // Body5 |
447+
FakeJsonFormDataBody body = new FakeJsonFormDataBody(); // FakeJsonFormDataBody |
448448
try {
449449
apiInstance.testJsonFormData(body);
450450
} catch (ApiException e) {
@@ -457,7 +457,7 @@ try {
457457

458458
Name | Type | Description | Notes
459459
------------- | ------------- | ------------- | -------------
460-
**body** | [**Body5**](Body5.md)| |
460+
**body** | [**FakeJsonFormDataBody**](FakeJsonFormDataBody.md)| |
461461

462462
### Return type
463463

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# FakeBody
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**integer** | **Integer** | None | [optional]
7+
**int32** | **Integer** | None | [optional]
8+
**int64** | **Long** | None | [optional]
9+
**number** | [**BigDecimal**](BigDecimal.md) | None |
10+
**_float** | **Float** | None | [optional]
11+
**_double** | **Double** | None |
12+
**string** | **String** | None | [optional]
13+
**patternWithoutDelimiter** | **String** | None |
14+
**_byte** | **byte[]** | None |
15+
**binary** | [**File**](File.md) | None | [optional]
16+
**date** | [**LocalDate**](LocalDate.md) | None | [optional]
17+
**dateTime** | [**OffsetDateTime**](OffsetDateTime.md) | None | [optional]
18+
**password** | **String** | None | [optional]
19+
**callback** | **String** | None | [optional]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# FakeBody1
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**integer** | **Integer** | None | [optional]
7+
**int32** | **Integer** | None | [optional]
8+
**int64** | **Long** | None | [optional]
9+
**number** | [**BigDecimal**](BigDecimal.md) | None |
10+
**_float** | **Float** | None | [optional]
11+
**_double** | **Double** | None |
12+
**string** | **String** | None | [optional]
13+
**patternWithoutDelimiter** | **String** | None |
14+
**_byte** | **byte[]** | None |
15+
**binary** | [**File**](File.md) | None | [optional]
16+
**date** | [**LocalDate**](LocalDate.md) | None | [optional]
17+
**dateTime** | [**OffsetDateTime**](OffsetDateTime.md) | None | [optional]
18+
**password** | **String** | None | [optional]
19+
**callback** | **String** | None | [optional]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# FakeJsonFormDataBody
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**param** | **String** | field1 |
7+
**param2** | **String** | field2 |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# PetIdUploadImageBody
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**additionalMetadata** | **String** | Additional data to pass to server | [optional]
7+
**file** | [**File**](File.md) | file to upload | [optional]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# PetPetIdBody
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**name** | **String** | Updated name of the pet | [optional]
7+
**status** | **String** | Updated status of the pet | [optional]

0 commit comments

Comments
 (0)