All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
subscriptionsGetDefaultPermissions | GET /api/manage/v1/Subscriptions/{subscriptionId}/defaultPermissions | Get subscription's default permissions for new entities |
subscriptionsGetMyPermissions | GET /api/manage/v1/Subscriptions/{subId}/mypermissions | Get user's permissions for a subscription by id |
subscriptionsGetPermissions | GET /api/manage/v1/Subscriptions/{id}/permissions | Get permissions for a subscription by id |
subscriptionsGetSubscription | GET /api/manage/v1/Subscriptions/{id} | Returns the subscription by id |
subscriptionsGetSubscriptions | GET /api/manage/v1/Subscriptions | Returns a list of all subscriptions of current user |
subscriptionsRenameSubscription | PUT /api/manage/v1/Subscriptions/{subscriptionId}/rename | Rename subscription |
subscriptionsUpdateDefaultPermissions | PUT /api/manage/v1/Subscriptions/{subscriptionId}/defaultPermissions | Change subscription's default permissions for new entities |
subscriptionsUpdateLocale | PUT /api/manage/v1/Subscriptions/{subscriptionId}/Locale | Update subscription's default locale |
subscriptionsUpdatePermissions | POST /api/manage/v1/Subscriptions/{id}/permissions | Update permissions |
DefaultPermissionsVM subscriptionsGetDefaultPermissions(subscriptionId)
Get subscription's default permissions for new entities
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = SubscriptionsApi()
val subscriptionId : kotlin.String = subscriptionId_example // kotlin.String | id
try {
val result : DefaultPermissionsVM = apiInstance.subscriptionsGetDefaultPermissions(subscriptionId)
println(result)
} catch (e: ClientException) {
println("4xx response calling SubscriptionsApi#subscriptionsGetDefaultPermissions")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling SubscriptionsApi#subscriptionsGetDefaultPermissions")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | kotlin.String | id |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
MyPermissionsVM subscriptionsGetMyPermissions(subId)
Get user's permissions for a subscription by id
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = SubscriptionsApi()
val subId : kotlin.String = subId_example // kotlin.String | subscription id
try {
val result : MyPermissionsVM = apiInstance.subscriptionsGetMyPermissions(subId)
println(result)
} catch (e: ClientException) {
println("4xx response calling SubscriptionsApi#subscriptionsGetMyPermissions")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling SubscriptionsApi#subscriptionsGetMyPermissions")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
subId | kotlin.String | subscription id |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
SubscriptionPermissionsVM subscriptionsGetPermissions(id)
Get permissions for a subscription by id
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = SubscriptionsApi()
val id : kotlin.String = id_example // kotlin.String |
try {
val result : SubscriptionPermissionsVM = apiInstance.subscriptionsGetPermissions(id)
println(result)
} catch (e: ClientException) {
println("4xx response calling SubscriptionsApi#subscriptionsGetPermissions")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling SubscriptionsApi#subscriptionsGetPermissions")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
id | kotlin.String |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
SubscriptionVM subscriptionsGetSubscription(id)
Returns the subscription by id
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = SubscriptionsApi()
val id : kotlin.String = id_example // kotlin.String | Identifier of subscription
try {
val result : SubscriptionVM = apiInstance.subscriptionsGetSubscription(id)
println(result)
} catch (e: ClientException) {
println("4xx response calling SubscriptionsApi#subscriptionsGetSubscription")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling SubscriptionsApi#subscriptionsGetSubscription")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
id | kotlin.String | Identifier of subscription |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
SubscriptionsVM subscriptionsGetSubscriptions(skip, take)
Returns a list of all subscriptions of current user
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = SubscriptionsApi()
val skip : kotlin.Int = 56 // kotlin.Int | Variable for pagination, defautl value is 0
val take : kotlin.Int = 56 // kotlin.Int | Variable for pagination, default value is 10
try {
val result : SubscriptionsVM = apiInstance.subscriptionsGetSubscriptions(skip, take)
println(result)
} catch (e: ClientException) {
println("4xx response calling SubscriptionsApi#subscriptionsGetSubscriptions")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling SubscriptionsApi#subscriptionsGetSubscriptions")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
skip | kotlin.Int | Variable for pagination, defautl value is 0 | [optional] [default to 0] |
take | kotlin.Int | Variable for pagination, default value is 10 | [optional] [default to 10] |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
SubscriptionVM subscriptionsRenameSubscription(subscriptionId, renameSubscriptionVM)
Rename subscription
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = SubscriptionsApi()
val subscriptionId : kotlin.String = subscriptionId_example // kotlin.String | id
val renameSubscriptionVM : RenameSubscriptionVM = // RenameSubscriptionVM | rename VM
try {
val result : SubscriptionVM = apiInstance.subscriptionsRenameSubscription(subscriptionId, renameSubscriptionVM)
println(result)
} catch (e: ClientException) {
println("4xx response calling SubscriptionsApi#subscriptionsRenameSubscription")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling SubscriptionsApi#subscriptionsRenameSubscription")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | kotlin.String | id | |
renameSubscriptionVM | RenameSubscriptionVM | rename VM |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json
DefaultPermissionsVM subscriptionsUpdateDefaultPermissions(subscriptionId, updateDefaultPermissionsVM)
Change subscription's default permissions for new entities
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = SubscriptionsApi()
val subscriptionId : kotlin.String = subscriptionId_example // kotlin.String | id
val updateDefaultPermissionsVM : UpdateDefaultPermissionsVM = // UpdateDefaultPermissionsVM | update default permissions VM
try {
val result : DefaultPermissionsVM = apiInstance.subscriptionsUpdateDefaultPermissions(subscriptionId, updateDefaultPermissionsVM)
println(result)
} catch (e: ClientException) {
println("4xx response calling SubscriptionsApi#subscriptionsUpdateDefaultPermissions")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling SubscriptionsApi#subscriptionsUpdateDefaultPermissions")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | kotlin.String | id | |
updateDefaultPermissionsVM | UpdateDefaultPermissionsVM | update default permissions VM |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json
SubscriptionVM subscriptionsUpdateLocale(subscriptionId, updateSubscriptionLocaleVM)
Update subscription's default locale
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = SubscriptionsApi()
val subscriptionId : kotlin.String = subscriptionId_example // kotlin.String | id
val updateSubscriptionLocaleVM : UpdateSubscriptionLocaleVM = // UpdateSubscriptionLocaleVM | update VM
try {
val result : SubscriptionVM = apiInstance.subscriptionsUpdateLocale(subscriptionId, updateSubscriptionLocaleVM)
println(result)
} catch (e: ClientException) {
println("4xx response calling SubscriptionsApi#subscriptionsUpdateLocale")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling SubscriptionsApi#subscriptionsUpdateLocale")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | kotlin.String | id | |
updateSubscriptionLocaleVM | UpdateSubscriptionLocaleVM | update VM |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json
subscriptionsUpdatePermissions(id, updateSubscriptionPermissionsVM)
Update permissions
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = SubscriptionsApi()
val id : kotlin.String = id_example // kotlin.String |
val updateSubscriptionPermissionsVM : UpdateSubscriptionPermissionsVM = // UpdateSubscriptionPermissionsVM |
try {
apiInstance.subscriptionsUpdatePermissions(id, updateSubscriptionPermissionsVM)
} catch (e: ClientException) {
println("4xx response calling SubscriptionsApi#subscriptionsUpdatePermissions")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling SubscriptionsApi#subscriptionsUpdatePermissions")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
id | kotlin.String | ||
updateSubscriptionPermissionsVM | UpdateSubscriptionPermissionsVM | [optional] |
null (empty response body)
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json