Akihito Nakano 05107032d1
Fix missing closing parenthesis (#1739)
* Add a script to generate kotlin client samples from OAS3

* Generate kotlin client

* Fix missing closing parenthesis

* Update samples

* Add build folder to gitignore
2018-12-23 09:54:51 +09:00

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

InlineResponseDefault

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json