Generate kotlin 'client-string' sample (#369)

* Move pom to 'samples.ci'

* Regenerate 'samples/client/petstore/kotlin-string'
This commit is contained in:
Jérémie Bresson
2018-05-08 10:45:50 +02:00
committed by William Cheng
parent 58c45b9b75
commit e1c9a924c0
195 changed files with 171 additions and 152 deletions

View File

@@ -16,12 +16,10 @@ Method | HTTP request | Description
<a name="addPet"></a>
# **addPet**
> addPet(body)
> addPet(pet)
Add a new pet to the store
### Example
```kotlin
// Import classes:
@@ -29,9 +27,9 @@ Add a new pet to the store
//import io.swagger.client.models.*
val apiInstance = PetApi()
val body : Pet = // Pet | Pet object that needs to be added to the store
val pet : Pet = // Pet | Pet object that needs to be added to the store
try {
apiInstance.addPet(body)
apiInstance.addPet(pet)
} catch (e: ClientException) {
println("4xx response calling PetApi#addPet")
e.printStackTrace()
@@ -45,7 +43,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
### Return type
@@ -58,7 +56,7 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/xml, application/json
- **Accept**: Not defined
<a name="deletePet"></a>
# **deletePet**
@@ -66,8 +64,6 @@ null (empty response body)
Deletes a pet
### Example
```kotlin
// Import classes:
@@ -106,7 +102,7 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
- **Accept**: Not defined
<a name="findPetsByStatus"></a>
# **findPetsByStatus**
@@ -251,12 +247,10 @@ Name | Type | Description | Notes
<a name="updatePet"></a>
# **updatePet**
> updatePet(body)
> updatePet(pet)
Update an existing pet
### Example
```kotlin
// Import classes:
@@ -264,9 +258,9 @@ Update an existing pet
//import io.swagger.client.models.*
val apiInstance = PetApi()
val body : Pet = // Pet | Pet object that needs to be added to the store
val pet : Pet = // Pet | Pet object that needs to be added to the store
try {
apiInstance.updatePet(body)
apiInstance.updatePet(pet)
} catch (e: ClientException) {
println("4xx response calling PetApi#updatePet")
e.printStackTrace()
@@ -280,7 +274,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
### Return type
@@ -293,7 +287,7 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/xml, application/json
- **Accept**: Not defined
<a name="updatePetWithForm"></a>
# **updatePetWithForm**
@@ -301,8 +295,6 @@ null (empty response body)
Updates a pet in the store with form data
### Example
```kotlin
// Import classes:
@@ -329,8 +321,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**petId** | **kotlin.Long**| ID of pet that needs to be updated |
**name** | **kotlin.String**| Updated name of the pet | [optional]
**status** | **kotlin.String**| Updated status of the pet | [optional]
**name** | **kotlin.String**| Updated name of the pet | [optional] [default to null]
**status** | **kotlin.String**| Updated status of the pet | [optional] [default to null]
### Return type
@@ -343,7 +335,7 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: application/x-www-form-urlencoded
- **Accept**: application/xml, application/json
- **Accept**: Not defined
<a name="uploadFile"></a>
# **uploadFile**
@@ -351,8 +343,6 @@ null (empty response body)
uploads an image
### Example
```kotlin
// Import classes:
@@ -362,7 +352,7 @@ uploads an image
val apiInstance = PetApi()
val petId : kotlin.Long = 789 // kotlin.Long | ID of pet to update
val additionalMetadata : kotlin.String = additionalMetadata_example // kotlin.String | Additional data to pass to server
val file : java.io.File = /path/to/file.txt // java.io.File | file to upload
val file : java.io.File = BINARY_DATA_HERE // java.io.File | file to upload
try {
val result : ApiResponse = apiInstance.uploadFile(petId, additionalMetadata, file)
println(result)
@@ -380,8 +370,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**petId** | **kotlin.Long**| ID of pet to update |
**additionalMetadata** | **kotlin.String**| Additional data to pass to server | [optional]
**file** | **java.io.File**| file to upload | [optional]
**additionalMetadata** | **kotlin.String**| Additional data to pass to server | [optional] [default to null]
**file** | **java.io.File**| file to upload | [optional] [default to null]
### Return type