Skip to main content

ProxyApi

All URIs are relative to http://localhost

MethodHTTP requestDescription
callProxyPOST /proxyCalls a pre-defined proxy service with the provided data

callProxy#

Calls a pre-defined proxy service with the provided data

ProxyResult callProxy(body)#

Returns the response from the proxied service as a string

Parameters#

NameTypeDescriptionNotes
bodyProxyCallParameters

Return type#

ProxyResult

Authorization#

Configure apiKey: ApiClient.apiKey["Authorization,X-Api-Key"] = "" ApiClient.apiKeyPrefix["Authorization,X-Api-Key"] = ""

HTTP request headers#

  • Content-Type: Not defined
  • Accept: /

Example#

// Import classes:// import com.yatlabs.yat.infrastructure.*// import com.yatlabs.yat.models.*
val apiInstance = ProxyApi()    val body : ProxyCallParameters =  // ProxyCallParameters | try {val result : ProxyResult = apiInstance.callProxy(body)    println(result)} catch (e: ClientException) {println("4xx response calling ProxyApi#callProxy")e.printStackTrace()} catch (e: ServerException) {println("5xx response calling ProxyApi#callProxy")e.printStackTrace()}