Skip to content

Latest commit

 

History

History
156 lines (114 loc) · 4.26 KB

UserSettingsApi.md

File metadata and controls

156 lines (114 loc) · 4.26 KB

UserSettingsApi

All URIs are relative to http://localhost

Method HTTP request Description
userSettingsAcceptAgreements POST /api/manage/v1/UserSettings/accept Use this endpoint to accept current version of service license agreement
userSettingsGetCurrentUserSettings GET /api/manage/v1/UserSettings Return current user settings.
userSettingsUpdateMySettings PUT /api/manage/v1/UserSettings Update settings of the current user

userSettingsAcceptAgreements

userSettingsAcceptAgreements(acceptAgreementsVM)

Use this endpoint to accept current version of service license agreement

Example

// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*

val apiInstance = UserSettingsApi()
val acceptAgreementsVM : AcceptAgreementsVM =  // AcceptAgreementsVM | 
try {
    apiInstance.userSettingsAcceptAgreements(acceptAgreementsVM)
} catch (e: ClientException) {
    println("4xx response calling UserSettingsApi#userSettingsAcceptAgreements")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling UserSettingsApi#userSettingsAcceptAgreements")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
acceptAgreementsVM AcceptAgreementsVM [optional]

Return type

null (empty response body)

Authorization

Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""

HTTP request headers

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

userSettingsGetCurrentUserSettings

UserSettingsVM userSettingsGetCurrentUserSettings()

Return current user settings.

Example

// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*

val apiInstance = UserSettingsApi()
try {
    val result : UserSettingsVM = apiInstance.userSettingsGetCurrentUserSettings()
    println(result)
} catch (e: ClientException) {
    println("4xx response calling UserSettingsApi#userSettingsGetCurrentUserSettings")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling UserSettingsApi#userSettingsGetCurrentUserSettings")
    e.printStackTrace()
}

Parameters

This endpoint does not need any parameter.

Return type

UserSettingsVM

Authorization

Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""

HTTP request headers

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

userSettingsUpdateMySettings

UserSettingsVM userSettingsUpdateMySettings(updateUserSettingsVM)

Update settings of the current user

Example

// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*

val apiInstance = UserSettingsApi()
val updateUserSettingsVM : UpdateUserSettingsVM =  // UpdateUserSettingsVM | 
try {
    val result : UserSettingsVM = apiInstance.userSettingsUpdateMySettings(updateUserSettingsVM)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling UserSettingsApi#userSettingsUpdateMySettings")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling UserSettingsApi#userSettingsUpdateMySettings")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
updateUserSettingsVM UpdateUserSettingsVM [optional]

Return type

UserSettingsVM

Authorization

Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""

HTTP request headers

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