|
| 1 | +# FakeApi |
| 2 | + |
| 3 | +All URIs are relative to *http://petstore.swagger.io/v2* |
| 4 | + |
| 5 | +| Method | HTTP request | Description | |
| 6 | +| ------------- | ------------- | ------------- | |
| 7 | +| [**annotations**](FakeApi.md#annotations) | **POST** /fake/annotations | annotate | |
| 8 | +| [**updatePetWithFormNumber**](FakeApi.md#updatePetWithFormNumber) | **PUT** /fake/annotations | Updates a pet in the store with form data (number) | |
| 9 | + |
| 10 | + |
| 11 | +<a id="annotations"></a> |
| 12 | +# **annotations** |
| 13 | +> annotations(`annotation`) |
| 14 | +
|
| 15 | +annotate |
| 16 | + |
| 17 | +### Example |
| 18 | +```kotlin |
| 19 | +// Import classes: |
| 20 | +//import org.openapitools.client.infrastructure.* |
| 21 | +//import org.openapitools.client.models.* |
| 22 | + |
| 23 | +val apiInstance = FakeApi() |
| 24 | +val `annotation` : Annotation = // Annotation | |
| 25 | +try { |
| 26 | + apiInstance.annotations(`annotation`) |
| 27 | +} catch (e: ClientException) { |
| 28 | + println("4xx response calling FakeApi#annotations") |
| 29 | + e.printStackTrace() |
| 30 | +} catch (e: ServerException) { |
| 31 | + println("5xx response calling FakeApi#annotations") |
| 32 | + e.printStackTrace() |
| 33 | +} |
| 34 | +``` |
| 35 | + |
| 36 | +### Parameters |
| 37 | +| Name | Type | Description | Notes | |
| 38 | +| ------------- | ------------- | ------------- | ------------- | |
| 39 | +| **`annotation`** | [**Annotation**](Annotation.md)| | | |
| 40 | + |
| 41 | +### Return type |
| 42 | + |
| 43 | +null (empty response body) |
| 44 | + |
| 45 | +### Authorization |
| 46 | + |
| 47 | +No authorization required |
| 48 | + |
| 49 | +### HTTP request headers |
| 50 | + |
| 51 | + - **Content-Type**: application/json |
| 52 | + - **Accept**: Not defined |
| 53 | + |
| 54 | +<a id="updatePetWithFormNumber"></a> |
| 55 | +# **updatePetWithFormNumber** |
| 56 | +> updatePetWithFormNumber(petId, name, status, status2) |
| 57 | +
|
| 58 | +Updates a pet in the store with form data (number) |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | +### Example |
| 63 | +```kotlin |
| 64 | +// Import classes: |
| 65 | +//import org.openapitools.client.infrastructure.* |
| 66 | +//import org.openapitools.client.models.* |
| 67 | + |
| 68 | +val apiInstance = FakeApi() |
| 69 | +val petId : kotlin.Long = 789 // kotlin.Long | ID of pet that needs to be updated |
| 70 | +val name : kotlin.String = name_example // kotlin.String | Updated name of the pet |
| 71 | +val status : kotlin.Int = 56 // kotlin.Int | integer type |
| 72 | +val status2 : java.math.BigDecimal = 8.14 // java.math.BigDecimal | number type |
| 73 | +try { |
| 74 | + apiInstance.updatePetWithFormNumber(petId, name, status, status2) |
| 75 | +} catch (e: ClientException) { |
| 76 | + println("4xx response calling FakeApi#updatePetWithFormNumber") |
| 77 | + e.printStackTrace() |
| 78 | +} catch (e: ServerException) { |
| 79 | + println("5xx response calling FakeApi#updatePetWithFormNumber") |
| 80 | + e.printStackTrace() |
| 81 | +} |
| 82 | +``` |
| 83 | + |
| 84 | +### Parameters |
| 85 | +| **petId** | **kotlin.Long**| ID of pet that needs to be updated | | |
| 86 | +| **name** | **kotlin.String**| Updated name of the pet | [optional] | |
| 87 | +| **status** | **kotlin.Int**| integer type | [optional] | |
| 88 | +| Name | Type | Description | Notes | |
| 89 | +| ------------- | ------------- | ------------- | ------------- | |
| 90 | +| **status2** | **java.math.BigDecimal**| number type | [optional] | |
| 91 | + |
| 92 | +### Return type |
| 93 | + |
| 94 | +null (empty response body) |
| 95 | + |
| 96 | +### Authorization |
| 97 | + |
| 98 | + |
| 99 | +Configure petstore_auth: |
| 100 | + ApiClient.accessToken = "" |
| 101 | + |
| 102 | +### HTTP request headers |
| 103 | + |
| 104 | + - **Content-Type**: application/x-www-form-urlencoded |
| 105 | + - **Accept**: Not defined |
| 106 | + |
0 commit comments