All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
groupsCreateGroup | POST /api/manage/v1/Groups | Create a new user group |
groupsDeleteGroup | DELETE /api/manage/v1/Groups/{id} | Delete group by identifier |
groupsGetGroup | GET /api/manage/v1/Groups/{id} | Gets group by identifier |
groupsGetGroupList | GET /api/manage/v1/Groups | Returns a list of current user's groups<br /> This method will return following data about groups : <br /> Id, Name, Created time (UTC), Edited time (UTC), creator id, <br /> editor id, subscription id |
groupsGetPermissions | GET /api/manage/v1/Groups/{id}/permissions | Gets group permissions by identifier |
groupsRenameGroup | PUT /api/manage/v1/Groups/{id}/rename | Rename group by identifier |
groupsUpdatePermissions | POST /api/manage/v1/Groups/{id}/permissions | Update permissions |
GroupVM groupsCreateGroup(createGroupVM)
Create a new user group
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = GroupsApi()
val createGroupVM : CreateGroupVM = // CreateGroupVM | Model for creating
try {
val result : GroupVM = apiInstance.groupsCreateGroup(createGroupVM)
println(result)
} catch (e: ClientException) {
println("4xx response calling GroupsApi#groupsCreateGroup")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling GroupsApi#groupsCreateGroup")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
createGroupVM | CreateGroupVM | Model for creating | [optional] |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json
groupsDeleteGroup(id)
Delete group by identifier
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = GroupsApi()
val id : kotlin.String = id_example // kotlin.String | Identifier of group
try {
apiInstance.groupsDeleteGroup(id)
} catch (e: ClientException) {
println("4xx response calling GroupsApi#groupsDeleteGroup")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling GroupsApi#groupsDeleteGroup")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
id | kotlin.String | Identifier of group |
null (empty response body)
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
GroupVM groupsGetGroup(id)
Gets group by identifier
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = GroupsApi()
val id : kotlin.String = id_example // kotlin.String | Identifier of group
try {
val result : GroupVM = apiInstance.groupsGetGroup(id)
println(result)
} catch (e: ClientException) {
println("4xx response calling GroupsApi#groupsGetGroup")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling GroupsApi#groupsGetGroup")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
id | kotlin.String | Identifier of group |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
GroupsVM groupsGetGroupList(skip, take)
Returns a list of current user's groups<br /> This method will return following data about groups : <br /> Id, Name, Created time (UTC), Edited time (UTC), creator id, <br /> editor id, subscription id
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = GroupsApi()
val skip : kotlin.Int = 56 // kotlin.Int | How many groups need to skip
val take : kotlin.Int = 56 // kotlin.Int | How many groups need to take
try {
val result : GroupsVM = apiInstance.groupsGetGroupList(skip, take)
println(result)
} catch (e: ClientException) {
println("4xx response calling GroupsApi#groupsGetGroupList")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling GroupsApi#groupsGetGroupList")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
skip | kotlin.Int | How many groups need to skip | [optional] [default to 0] |
take | kotlin.Int | How many groups need to take | [optional] [default to 10] |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
GroupPermissionsVM groupsGetPermissions(id)
Gets group permissions by identifier
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = GroupsApi()
val id : kotlin.String = id_example // kotlin.String | Identifier of group
try {
val result : GroupPermissionsVM = apiInstance.groupsGetPermissions(id)
println(result)
} catch (e: ClientException) {
println("4xx response calling GroupsApi#groupsGetPermissions")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling GroupsApi#groupsGetPermissions")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
id | kotlin.String | Identifier of group |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
GroupVM groupsRenameGroup(id, renameGroupVM)
Rename group by identifier
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = GroupsApi()
val id : kotlin.String = id_example // kotlin.String | Identifier of group
val renameGroupVM : RenameGroupVM = // RenameGroupVM | Model for renaming
try {
val result : GroupVM = apiInstance.groupsRenameGroup(id, renameGroupVM)
println(result)
} catch (e: ClientException) {
println("4xx response calling GroupsApi#groupsRenameGroup")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling GroupsApi#groupsRenameGroup")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
id | kotlin.String | Identifier of group | |
renameGroupVM | RenameGroupVM | Model for renaming |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json
groupsUpdatePermissions(id, updateGroupPermissionsVM)
Update permissions
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = GroupsApi()
val id : kotlin.String = id_example // kotlin.String |
val updateGroupPermissionsVM : UpdateGroupPermissionsVM = // UpdateGroupPermissionsVM |
try {
apiInstance.groupsUpdatePermissions(id, updateGroupPermissionsVM)
} catch (e: ClientException) {
println("4xx response calling GroupsApi#groupsUpdatePermissions")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling GroupsApi#groupsUpdatePermissions")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
id | kotlin.String | ||
updateGroupPermissionsVM | UpdateGroupPermissionsVM | [optional] |
null (empty response body)
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json