Skip to content

Latest commit

 

History

History
100 lines (72 loc) · 2.56 KB

PolicyApi.md

File metadata and controls

100 lines (72 loc) · 2.56 KB

PolicyApi

All URIs are relative to http://localhost

Method HTTP request Description
getOpalDataSources GET /v2/opal/data/config Get Opal Data Sources
getOpalDataSourcesOpalDataConfigGet GET /opal/data/config Get Opal Data Sources

getOpalDataSources

DataSourceConfig getOpalDataSources(token)

Get Opal Data Sources

Example

// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*

val apiInstance = PolicyApi()
val token : kotlin.String = token_example // kotlin.String | 
try {
    val result : DataSourceConfig = apiInstance.getOpalDataSources(token)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling PolicyApi#getOpalDataSources")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling PolicyApi#getOpalDataSources")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
token kotlin.String [optional]

Return type

DataSourceConfig

Authorization

No authorization required

HTTP request headers

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

getOpalDataSourcesOpalDataConfigGet

DataSourceConfig getOpalDataSourcesOpalDataConfigGet(token)

Get Opal Data Sources

Example

// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*

val apiInstance = PolicyApi()
val token : kotlin.String = token_example // kotlin.String | 
try {
    val result : DataSourceConfig = apiInstance.getOpalDataSourcesOpalDataConfigGet(token)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling PolicyApi#getOpalDataSourcesOpalDataConfigGet")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling PolicyApi#getOpalDataSourcesOpalDataConfigGet")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
token kotlin.String [optional]

Return type

DataSourceConfig

Authorization

No authorization required

HTTP request headers

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