All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
tasksCreateTask | POST /api/tasks/v1/Tasks | Create a new task |
tasksDeleteTask | DELETE /api/tasks/v1/Tasks/{taskId} | Delete a task from a storage |
tasksGet | GET /api/tasks/v1/Tasks/{taskId} | Get a task by a specified id |
tasksGetList | GET /api/tasks/v1/Tasks | Get tasks list |
tasksGetPermissions | GET /api/tasks/v1/Tasks/{id}/permissions | Get all Task permissions |
tasksRenameTask | PUT /api/tasks/v1/Tasks/{taskId}/rename | Rename a task |
tasksRunTask | POST /api/tasks/v1/Tasks/run | Run a task from request body |
tasksRunTaskById | POST /api/tasks/v1/Tasks/{taskId}/run | Run a task by id |
tasksUpdatePermissions | POST /api/tasks/v1/Tasks/{id}/permissions | Update permissions |
tasksUpdateTask | PUT /api/tasks/v1/Tasks/{taskId} | Update a task |
TaskBaseVM tasksCreateTask(createTaskBaseVM)
Create a new task
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = TasksApi()
val createTaskBaseVM : CreateTaskBaseVM = // CreateTaskBaseVM | task's view model. You have to specify task type (type: \"ExportTemplate\")
try {
val result : TaskBaseVM = apiInstance.tasksCreateTask(createTaskBaseVM)
println(result)
} catch (e: ClientException) {
println("4xx response calling TasksApi#tasksCreateTask")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TasksApi#tasksCreateTask")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
createTaskBaseVM | CreateTaskBaseVM | task's view model. You have to specify task type (type: "ExportTemplate") | [optional] |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json
tasksDeleteTask(taskId)
Delete a task from a storage
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = TasksApi()
val taskId : kotlin.String = taskId_example // kotlin.String | deleting task id
try {
apiInstance.tasksDeleteTask(taskId)
} catch (e: ClientException) {
println("4xx response calling TasksApi#tasksDeleteTask")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TasksApi#tasksDeleteTask")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
taskId | kotlin.String | deleting task id |
null (empty response body)
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
TaskBaseVM tasksGet(taskId)
Get a task by a specified id
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = TasksApi()
val taskId : kotlin.String = taskId_example // kotlin.String | a task id
try {
val result : TaskBaseVM = apiInstance.tasksGet(taskId)
println(result)
} catch (e: ClientException) {
println("4xx response calling TasksApi#tasksGet")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TasksApi#tasksGet")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
taskId | kotlin.String | a task id |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
TasksVM tasksGetList(skip, take, subscriptionId, searchPattern)
Get tasks list
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = TasksApi()
val skip : kotlin.Int = 56 // kotlin.Int | number of tasks, that have to be skipped
val take : kotlin.Int = 56 // kotlin.Int | number of tasks, that have to be returned
val subscriptionId : kotlin.String = subscriptionId_example // kotlin.String | subscription id
val searchPattern : kotlin.String = searchPattern_example // kotlin.String |
try {
val result : TasksVM = apiInstance.tasksGetList(skip, take, subscriptionId, searchPattern)
println(result)
} catch (e: ClientException) {
println("4xx response calling TasksApi#tasksGetList")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TasksApi#tasksGetList")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
skip | kotlin.Int | number of tasks, that have to be skipped | [optional] [default to 0] |
take | kotlin.Int | number of tasks, that have to be returned | [optional] [default to 10] |
subscriptionId | kotlin.String | subscription id | [optional] |
searchPattern | kotlin.String | [optional] [default to ""] |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
TaskPermissionsVM tasksGetPermissions(id)
Get all Task permissions
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = TasksApi()
val id : kotlin.String = id_example // kotlin.String | task id
try {
val result : TaskPermissionsVM = apiInstance.tasksGetPermissions(id)
println(result)
} catch (e: ClientException) {
println("4xx response calling TasksApi#tasksGetPermissions")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TasksApi#tasksGetPermissions")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
id | kotlin.String | task id |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
TaskBaseVM tasksRenameTask(taskId, newName)
Rename a task
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = TasksApi()
val taskId : kotlin.String = taskId_example // kotlin.String | renaming task id
val newName : kotlin.String = newName_example // kotlin.String | task's new Name
try {
val result : TaskBaseVM = apiInstance.tasksRenameTask(taskId, newName)
println(result)
} catch (e: ClientException) {
println("4xx response calling TasksApi#tasksRenameTask")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TasksApi#tasksRenameTask")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
taskId | kotlin.String | renaming task id | |
newName | kotlin.String | task's new Name | [optional] |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
tasksRunTask(runTaskBaseVM)
Run a task from request body
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = TasksApi()
val runTaskBaseVM : RunTaskBaseVM = // RunTaskBaseVM | task's view model
try {
apiInstance.tasksRunTask(runTaskBaseVM)
} catch (e: ClientException) {
println("4xx response calling TasksApi#tasksRunTask")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TasksApi#tasksRunTask")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
runTaskBaseVM | RunTaskBaseVM | task's view model | [optional] |
null (empty response body)
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json
tasksRunTaskById(taskId)
Run a task by id
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = TasksApi()
val taskId : kotlin.String = taskId_example // kotlin.String | task id
try {
apiInstance.tasksRunTaskById(taskId)
} catch (e: ClientException) {
println("4xx response calling TasksApi#tasksRunTaskById")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TasksApi#tasksRunTaskById")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
taskId | kotlin.String | task id |
null (empty response body)
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
tasksUpdatePermissions(id, updateTaskPermissionsVM)
Update permissions
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = TasksApi()
val id : kotlin.String = id_example // kotlin.String | task id
val updateTaskPermissionsVM : UpdateTaskPermissionsVM = // UpdateTaskPermissionsVM | new permissions
try {
apiInstance.tasksUpdatePermissions(id, updateTaskPermissionsVM)
} catch (e: ClientException) {
println("4xx response calling TasksApi#tasksUpdatePermissions")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TasksApi#tasksUpdatePermissions")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
id | kotlin.String | task id | |
updateTaskPermissionsVM | UpdateTaskPermissionsVM | new permissions | [optional] |
null (empty response body)
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json
TaskBaseVM tasksUpdateTask(taskId, updateTaskBaseVM)
Update a task
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = TasksApi()
val taskId : kotlin.String = taskId_example // kotlin.String | updating task id
val updateTaskBaseVM : UpdateTaskBaseVM = // UpdateTaskBaseVM | task's view model. You have to specify task type (type: \"ExportTemplate\")
try {
val result : TaskBaseVM = apiInstance.tasksUpdateTask(taskId, updateTaskBaseVM)
println(result)
} catch (e: ClientException) {
println("4xx response calling TasksApi#tasksUpdateTask")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TasksApi#tasksUpdateTask")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
taskId | kotlin.String | updating task id | |
updateTaskBaseVM | UpdateTaskBaseVM | task's view model. You have to specify task type (type: "ExportTemplate") | [optional] |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json