forked from loafle/openapi-generator-original
generate code
This commit is contained in:
34
samples/client/test/swift5default/docs/AllPrimitives.md
Normal file
34
samples/client/test/swift5default/docs/AllPrimitives.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# AllPrimitives
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**myInteger** | **Int** | | [optional]
|
||||
**myIntegerArray** | **[Int]** | | [optional]
|
||||
**myLong** | **Int64** | | [optional]
|
||||
**myLongArray** | **[Int64]** | | [optional]
|
||||
**myFloat** | **Float** | | [optional]
|
||||
**myFloatArray** | **[Float]** | | [optional]
|
||||
**myDouble** | **Double** | | [optional]
|
||||
**myDoubleArray** | **[Double]** | | [optional]
|
||||
**myString** | **String** | | [optional]
|
||||
**myStringArray** | **[String]** | | [optional]
|
||||
**myBytes** | **Data** | | [optional]
|
||||
**myBytesArray** | **[Data]** | | [optional]
|
||||
**myBoolean** | **Bool** | | [optional]
|
||||
**myBooleanArray** | **[Bool]** | | [optional]
|
||||
**myDate** | **Date** | | [optional]
|
||||
**myDateArray** | **[Date]** | | [optional]
|
||||
**myDateTime** | **Date** | | [optional]
|
||||
**myDateTimeArray** | **[Date]** | | [optional]
|
||||
**myFile** | **URL** | | [optional]
|
||||
**myFileArray** | **[URL]** | | [optional]
|
||||
**myUUID** | **UUID** | | [optional]
|
||||
**myUUIDArray** | **[UUID]** | | [optional]
|
||||
**myStringEnum** | [**StringEnum**](StringEnum.md) | | [optional]
|
||||
**myStringEnumArray** | [StringEnum] | | [optional]
|
||||
**myInlineStringEnum** | **String** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
10
samples/client/test/swift5default/docs/BaseCard.md
Normal file
10
samples/client/test/swift5default/docs/BaseCard.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# BaseCard
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**cardType** | **String** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
12
samples/client/test/swift5default/docs/ErrorInfo.md
Normal file
12
samples/client/test/swift5default/docs/ErrorInfo.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# ErrorInfo
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**code** | **Int** | | [optional]
|
||||
**message** | **String** | | [optional]
|
||||
**details** | **[String]** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
12
samples/client/test/swift5default/docs/GetAllModelsResult.md
Normal file
12
samples/client/test/swift5default/docs/GetAllModelsResult.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# GetAllModelsResult
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**myPrimitiveArray** | [AllPrimitives] | | [optional]
|
||||
**myPrimitive** | [**AllPrimitives**](AllPrimitives.md) | | [optional]
|
||||
**myVariableNameTest** | [**VariableNameTest**](VariableNameTest.md) | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
# ModelWithPropertiesAndAdditionalProperties
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**myIntegerReq** | **Int** | |
|
||||
**myIntegerOpt** | **Int** | | [optional]
|
||||
**myPrimitiveReq** | [**AllPrimitives**](AllPrimitives.md) | |
|
||||
**myPrimitiveOpt** | [**AllPrimitives**](AllPrimitives.md) | | [optional]
|
||||
**myStringArrayReq** | **[String]** | |
|
||||
**myStringArrayOpt** | **[String]** | | [optional]
|
||||
**myPrimitiveArrayReq** | [AllPrimitives] | |
|
||||
**myPrimitiveArrayOpt** | [AllPrimitives] | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
11
samples/client/test/swift5default/docs/PersonCard.md
Normal file
11
samples/client/test/swift5default/docs/PersonCard.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# PersonCard
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**firstName** | **String** | | [optional]
|
||||
**lastName** | **String** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
11
samples/client/test/swift5default/docs/PersonCardAllOf.md
Normal file
11
samples/client/test/swift5default/docs/PersonCardAllOf.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# PersonCardAllOf
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**firstName** | **String** | | [optional]
|
||||
**lastName** | **String** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
11
samples/client/test/swift5default/docs/PlaceCard.md
Normal file
11
samples/client/test/swift5default/docs/PlaceCard.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# PlaceCard
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**placeName** | **String** | | [optional]
|
||||
**placeAddress** | **String** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
11
samples/client/test/swift5default/docs/PlaceCardAllOf.md
Normal file
11
samples/client/test/swift5default/docs/PlaceCardAllOf.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# PlaceCardAllOf
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**placeName** | **String** | | [optional]
|
||||
**placeAddress** | **String** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
11
samples/client/test/swift5default/docs/SampleBase.md
Normal file
11
samples/client/test/swift5default/docs/SampleBase.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# SampleBase
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**baseClassStringProp** | **String** | | [optional]
|
||||
**baseClassIntegerProp** | **Int** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
13
samples/client/test/swift5default/docs/SampleSubClass.md
Normal file
13
samples/client/test/swift5default/docs/SampleSubClass.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# SampleSubClass
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**baseClassStringProp** | **String** | | [optional]
|
||||
**baseClassIntegerProp** | **Int** | | [optional]
|
||||
**subClassStringProp** | **String** | | [optional]
|
||||
**subClassIntegerProp** | **Int** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
# SampleSubClassAllOf
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**subClassStringProp** | **String** | | [optional]
|
||||
**subClassIntegerProp** | **Int** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
9
samples/client/test/swift5default/docs/StringEnum.md
Normal file
9
samples/client/test/swift5default/docs/StringEnum.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# StringEnum
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
59
samples/client/test/swift5default/docs/Swift4TestAPI.md
Normal file
59
samples/client/test/swift5default/docs/Swift4TestAPI.md
Normal file
@@ -0,0 +1,59 @@
|
||||
# Swift4TestAPI
|
||||
|
||||
All URIs are relative to *http://api.example.com/basePath*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**getAllModels**](Swift4TestAPI.md#getallmodels) | **GET** /allModels | Get all of the models
|
||||
|
||||
|
||||
# **getAllModels**
|
||||
```swift
|
||||
open class func getAllModels(clientId: String, completion: @escaping (_ data: GetAllModelsResult?, _ error: Error?) -> Void)
|
||||
```
|
||||
|
||||
Get all of the models
|
||||
|
||||
This endpoint tests get a dictionary which contains examples of all of the models.
|
||||
|
||||
### Example
|
||||
```swift
|
||||
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
|
||||
import TestClient
|
||||
|
||||
let clientId = "clientId_example" // String | id that represent the Api client
|
||||
|
||||
// Get all of the models
|
||||
Swift4TestAPI.getAllModels(clientId: clientId) { (response, error) in
|
||||
guard error == nil else {
|
||||
print(error)
|
||||
return
|
||||
}
|
||||
|
||||
if (response) {
|
||||
dump(response)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**clientId** | **String** | id that represent the Api client |
|
||||
|
||||
### Return type
|
||||
|
||||
[**GetAllModelsResult**](GetAllModelsResult.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
12
samples/client/test/swift5default/docs/VariableNameTest.md
Normal file
12
samples/client/test/swift5default/docs/VariableNameTest.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# VariableNameTest
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**exampleName** | **String** | This snake-case examle_name property name should be converted to a camelCase variable name like exampleName | [optional]
|
||||
**_for** | **String** | This property name is a reserved word in most languages, including Swift 4. | [optional]
|
||||
**normalName** | **String** | This model object property name should be unchanged from the JSON property name. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user