ProxyApi
All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| callProxy | POST /proxy | Calls 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#
| Name | Type | Description | Notes |
|---|---|---|---|
| body | ProxyCallParameters |
Return type#
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()}