forked from loafle/openapi-generator-original
* Add a script to generate kotlin client samples from OAS3 * Generate kotlin client * Fix missing closing parenthesis * Update samples * Add build folder to gitignore
1.0 KiB
1.0 KiB
DefaultApi
All URIs are relative to http://petstore.swagger.io:80/v2
Method | HTTP request | Description |
---|---|---|
fooGet | GET /foo |
fooGet
InlineResponseDefault fooGet()
Example
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = DefaultApi()
try {
val result : InlineResponseDefault = apiInstance.fooGet()
println(result)
} catch (e: ClientException) {
println("4xx response calling DefaultApi#fooGet")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DefaultApi#fooGet")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json