forked from loafle/openapi-generator-original
* Add validation sample * Add validation template * Add access control * Add rule property for string for numeric * Add access control * Remove useless file * Fix condition * Add properies for test * Rename * Add additional property * Run ./bin/utils/export_docs_generators.sh * Add comments for validator * Rename * Run ./bin/generate-samples.sh bin/configs/swift*
1.1 KiB
1.1 KiB
DefaultAPI
All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
rootGet | GET / |
rootGet
open class func rootGet(completion: @escaping (_ data: Banana?, _ error: Error?) -> Void)
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import PetstoreClient
DefaultAPI.rootGet() { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Parameters
This endpoint does not need any parameter.
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]