All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| contactsCreate | POST /api/v1/Contacts/contact | Creates new contact |
| contactsDelete | DELETE /api/v1/Contacts/{id} | Removes contact by id |
| contactsGet | GET /api/v1/Contacts/{id} | Returns contact group by id |
| contactsGetByGroup | GET /api/v1/Contacts/group/{groupId}/contacts | Returns contacts by group id |
| contactsGetList | GET /api/v1/Contacts/subscription/{subscriptionId}/contacts | Allows to search for contacts |
| contactsUpdate | PUT /api/v1/Contacts/{id} | Updates contact by id |
ContactVM contactsCreate(createContactVM)
Creates new contact
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = ContactsApi()
val createContactVM : CreateContactVM = // CreateContactVM |
try {
val result : ContactVM = apiInstance.contactsCreate(createContactVM)
println(result)
} catch (e: ClientException) {
println("4xx response calling ContactsApi#contactsCreate")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ContactsApi#contactsCreate")
e.printStackTrace()
}| Name | Type | Description | Notes |
|---|---|---|---|
| createContactVM | CreateContactVM | [optional] |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json
contactsDelete(id)
Removes contact by id
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = ContactsApi()
val id : kotlin.String = id_example // kotlin.String |
try {
apiInstance.contactsDelete(id)
} catch (e: ClientException) {
println("4xx response calling ContactsApi#contactsDelete")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ContactsApi#contactsDelete")
e.printStackTrace()
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | kotlin.String |
null (empty response body)
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
ContactVM contactsGet(id)
Returns contact group by id
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = ContactsApi()
val id : kotlin.String = id_example // kotlin.String |
try {
val result : ContactVM = apiInstance.contactsGet(id)
println(result)
} catch (e: ClientException) {
println("4xx response calling ContactsApi#contactsGet")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ContactsApi#contactsGet")
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
ContactsVM contactsGetByGroup(groupId, skip, take)
Returns contacts by group id
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = ContactsApi()
val groupId : kotlin.String = groupId_example // kotlin.String |
val skip : kotlin.Int = 56 // kotlin.Int |
val take : kotlin.Int = 56 // kotlin.Int |
try {
val result : ContactsVM = apiInstance.contactsGetByGroup(groupId, skip, take)
println(result)
} catch (e: ClientException) {
println("4xx response calling ContactsApi#contactsGetByGroup")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ContactsApi#contactsGetByGroup")
e.printStackTrace()
}| Name | Type | Description | Notes |
|---|---|---|---|
| groupId | kotlin.String | ||
| skip | kotlin.Int | [optional] [default to 0] | |
| take | kotlin.Int | [optional] [default to 10] |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
ContactsVM contactsGetList(subscriptionId, skip, take, searchPattern)
Allows to search for contacts
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = ContactsApi()
val subscriptionId : kotlin.String = subscriptionId_example // kotlin.String |
val skip : kotlin.Int = 56 // kotlin.Int |
val take : kotlin.Int = 56 // kotlin.Int |
val searchPattern : kotlin.String = searchPattern_example // kotlin.String |
try {
val result : ContactsVM = apiInstance.contactsGetList(subscriptionId, skip, take, searchPattern)
println(result)
} catch (e: ClientException) {
println("4xx response calling ContactsApi#contactsGetList")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ContactsApi#contactsGetList")
e.printStackTrace()
}| Name | Type | Description | Notes |
|---|---|---|---|
| subscriptionId | kotlin.String | ||
| skip | kotlin.Int | [optional] [default to 0] | |
| take | kotlin.Int | [optional] [default to 10] | |
| searchPattern | kotlin.String | [optional] |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
ContactVM contactsUpdate(id, updateContactVM)
Updates contact by id
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = ContactsApi()
val id : kotlin.String = id_example // kotlin.String |
val updateContactVM : UpdateContactVM = // UpdateContactVM |
try {
val result : ContactVM = apiInstance.contactsUpdate(id, updateContactVM)
println(result)
} catch (e: ClientException) {
println("4xx response calling ContactsApi#contactsUpdate")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ContactsApi#contactsUpdate")
e.printStackTrace()
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | kotlin.String | ||
| updateContactVM | UpdateContactVM | [optional] |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json