forked from loafle/openapi-generator-original
* [swift5] introduce new generator * [swift5] add Swift Package Manager integration and update dependencies * [swift5] run petstore * [swift] update Swift 5 generator with Swift 4 changes * [swift] update Swift 5 generator with Swift 4 changes * [swift] make CodableHelper more customizable * [swift] update pet projects * [swift] update pet projects * [swift] add nullable support * [swift] make enums conform to CaseIterable * [swift] date formatter add support for ISO8601 with and without milliseconds * [swift] add urlsession support * [swift] remove unecessary sample unwrapRequired * [swift] rename JSONEncodableEncoding.swift to JSONDataEncoding.swift * [swift] use result in generator internals * [swift] cocoapods remove deprecated docset_url and add watchos deployment target * [swift] Add ability to pass in a dedicated queue for processing network response (Fix for 230) * [swift] update pet projects * [swift] update docs * [swift] add support for combine * [swift] update docs * [swift] update windows bat scripts * [swift] update windows bat scripts * [swift] update swift pet project tests * [swift] update depencies * [swift] make urlsession the default http client * [swift] add urlsession sample project * [swift] add urlsession sample project * [swift] update docs * [swift] improve combine unit tests * [swift] update docs
1.5 KiB
1.5 KiB
Swift5TestAPI
All URIs are relative to http://api.example.com/basePath
Method | HTTP request | Description |
---|---|---|
getAllModels | GET /allModels | Get all of the models |
getAllModels
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
// 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
Swift5TestAPI.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
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]