Skip to content

Commit 263cb70

Browse files
committed
Update samples
1 parent 9f3e105 commit 263cb70

Some content is hidden

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

54 files changed

+371
-440
lines changed

samples/openapi3/client/petstore/kotlin/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Class | Method | HTTP request | Description
3737
------------ | ------------- | ------------- | -------------
3838
*AnotherFakeApi* | [**call123testSpecialTags**](docs/AnotherFakeApi.md#call123testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
3939
*DefaultApi* | [**fooGet**](docs/DefaultApi.md#fooget) | **GET** /foo |
40+
*FakeApi* | [**fakeHealthGet**](docs/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
4041
*FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
4142
*FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
4243
*FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
@@ -95,6 +96,7 @@ Class | Method | HTTP request | Description
9596
- [org.openapitools.client.models.Foo](docs/Foo.md)
9697
- [org.openapitools.client.models.FormatTest](docs/FormatTest.md)
9798
- [org.openapitools.client.models.HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
99+
- [org.openapitools.client.models.HealthCheckResult](docs/HealthCheckResult.md)
98100
- [org.openapitools.client.models.InlineObject](docs/InlineObject.md)
99101
- [org.openapitools.client.models.InlineObject1](docs/InlineObject1.md)
100102
- [org.openapitools.client.models.InlineObject2](docs/InlineObject2.md)
@@ -111,6 +113,9 @@ Class | Method | HTTP request | Description
111113
- [org.openapitools.client.models.Order](docs/Order.md)
112114
- [org.openapitools.client.models.OuterComposite](docs/OuterComposite.md)
113115
- [org.openapitools.client.models.OuterEnum](docs/OuterEnum.md)
116+
- [org.openapitools.client.models.OuterEnumDefaultValue](docs/OuterEnumDefaultValue.md)
117+
- [org.openapitools.client.models.OuterEnumInteger](docs/OuterEnumInteger.md)
118+
- [org.openapitools.client.models.OuterEnumIntegerDefaultValue](docs/OuterEnumIntegerDefaultValue.md)
114119
- [org.openapitools.client.models.Pet](docs/Pet.md)
115120
- [org.openapitools.client.models.ReadOnlyFirst](docs/ReadOnlyFirst.md)
116121
- [org.openapitools.client.models.Return](docs/Return.md)
@@ -136,6 +141,11 @@ Class | Method | HTTP request | Description
136141
- **API key parameter name**: api_key_query
137142
- **Location**: URL query string
138143

144+
<a name="bearer_test"></a>
145+
### bearer_test
146+
147+
- **Type**: HTTP basic authentication
148+
139149
<a name="http_basic_test"></a>
140150
### http_basic_test
141151

samples/openapi3/client/petstore/kotlin/docs/EnumClass.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
* `abc` (value: `"_abc"`)
88

9-
* `minusefg` (value: `"-efg"`)
9+
* `minusEfg` (value: `"-efg"`)
1010

11-
* `leftParenthesisxyzRightParenthesis` (value: `"(xyz)"`)
11+
* `leftParenthesisXyzRightParenthesis` (value: `"(xyz)"`)
1212

1313

1414

samples/openapi3/client/petstore/kotlin/docs/Enum_Test.md renamed to samples/openapi3/client/petstore/kotlin/docs/EnumTest.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ Name | Type | Description | Notes
99
**enumInteger** | [**inline**](#EnumIntegerEnum) | | [optional]
1010
**enumNumber** | [**inline**](#EnumNumberEnum) | | [optional]
1111
**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional]
12+
**outerEnumInteger** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional]
13+
**outerEnumDefaultValue** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional]
14+
**outerEnumIntegerDefaultValue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional]
1215

1316

1417
<a name="EnumStringEnum"></a>

samples/openapi3/client/petstore/kotlin/docs/FakeApi.md

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7+
[**fakeHealthGet**](FakeApi.md#fakeHealthGet) | **GET** /fake/health | Health check endpoint
78
[**fakeOuterBooleanSerialize**](FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean |
89
[**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
910
[**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
@@ -18,6 +19,47 @@ Method | HTTP request | Description
1819
[**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
1920

2021

22+
<a name="fakeHealthGet"></a>
23+
# **fakeHealthGet**
24+
> HealthCheckResult fakeHealthGet()
25+
26+
Health check endpoint
27+
28+
### Example
29+
```kotlin
30+
// Import classes:
31+
//import org.openapitools.client.infrastructure.*
32+
//import org.openapitools.client.models.*
33+
34+
val apiInstance = FakeApi()
35+
try {
36+
val result : HealthCheckResult = apiInstance.fakeHealthGet()
37+
println(result)
38+
} catch (e: ClientException) {
39+
println("4xx response calling FakeApi#fakeHealthGet")
40+
e.printStackTrace()
41+
} catch (e: ServerException) {
42+
println("5xx response calling FakeApi#fakeHealthGet")
43+
e.printStackTrace()
44+
}
45+
```
46+
47+
### Parameters
48+
This endpoint does not need any parameter.
49+
50+
### Return type
51+
52+
[**HealthCheckResult**](HealthCheckResult.md)
53+
54+
### Authorization
55+
56+
No authorization required
57+
58+
### HTTP request headers
59+
60+
- **Content-Type**: Not defined
61+
- **Accept**: application/json
62+
2163
<a name="fakeOuterBooleanSerialize"></a>
2264
# **fakeOuterBooleanSerialize**
2365
> kotlin.Boolean fakeOuterBooleanSerialize(body)
@@ -127,7 +169,7 @@ Test serialization of outer number types
127169
//import org.openapitools.client.models.*
128170

129171
val apiInstance = FakeApi()
130-
val body : java.math.BigDecimal = 1.2 // java.math.BigDecimal | Input number as post body
172+
val body : java.math.BigDecimal = 8.14 // java.math.BigDecimal | Input number as post body
131173
try {
132174
val result : java.math.BigDecimal = apiInstance.fakeOuterNumberSerialize(body)
133175
println(result)
@@ -360,7 +402,7 @@ Fake endpoint for testing various parameters 假端點 偽のエンドポイン
360402
//import org.openapitools.client.models.*
361403

362404
val apiInstance = FakeApi()
363-
val number : java.math.BigDecimal = 1.2 // java.math.BigDecimal | None
405+
val number : java.math.BigDecimal = 8.14 // java.math.BigDecimal | None
364406
val double : kotlin.Double = 1.2 // kotlin.Double | None
365407
val patternWithoutDelimiter : kotlin.String = patternWithoutDelimiter_example // kotlin.String | None
366408
val byte : kotlin.ByteArray = BYTE_ARRAY_DATA_HERE // kotlin.ByteArray | None
@@ -526,7 +568,7 @@ null (empty response body)
526568

527569
### Authorization
528570

529-
No authorization required
571+
[bearer_test](../README.md#bearer_test)
530572

531573
### HTTP request headers
532574

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
# HealthCheckResult
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**nullableMessage** | **kotlin.String** | | [optional]
8+
9+
10+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# OuterEnumDefaultValue
3+
4+
## Enum
5+
6+
7+
* `placed` (value: `"placed"`)
8+
9+
* `approved` (value: `"approved"`)
10+
11+
* `delivered` (value: `"delivered"`)
12+
13+
14+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# OuterEnumInteger
3+
4+
## Enum
5+
6+
7+
* `_0` (value: `0`)
8+
9+
* `_1` (value: `1`)
10+
11+
* `_2` (value: `2`)
12+
13+
14+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# OuterEnumIntegerDefaultValue
3+
4+
## Enum
5+
6+
7+
* `_0` (value: `0`)
8+
9+
* `_1` (value: `1`)
10+
11+
* `_2` (value: `2`)
12+
13+
14+
Binary file not shown.

samples/openapi3/client/petstore/kotlin/gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 5 deletions
This file was deleted.

samples/openapi3/client/petstore/kotlin/gradlew

Lines changed: 0 additions & 172 deletions
This file was deleted.

0 commit comments

Comments
 (0)