All URIs are relative to https://localhost
| Method | HTTP request | Description |
|---|---|---|
| createChannel | POST /channels | Create a channel |
| deleteChannel | DELETE /channels/{id} | Hide a channel and delete all messages |
| findChannel | GET /channels/{id} | Get basic information about a channel |
| findChannelUsers | GET /channels/{id}/users | Get users list of a channel |
| hideChannel | POST /channels/{id}/hides | Hide a channel |
| joinChannel | POST /channels/{id}/join | Join to a channel, |
| leaveChannel | POST /channels/{id}/leave | Leave from a channel |
| reportChannel | POST /channels/{id}/reports | Report a channel |
| showChannel | DELETE /channels/{id}/hides | Show a channel |
| updateChannel | PUT /channels/{id} | Update a channel |
ChannelCreated createChannel(body)
Create a channel
// Import classes:
//import io.swagger.client.infrastructure.*
//import io.github.cactacea.backend.*
val apiInstance = ChannelsApi()
val body : PostChannelBody = // PostChannelBody |
try {
val result : ChannelCreated = apiInstance.createChannel(body)
println(result)
} catch (e: ClientException) {
println("4xx response calling ChannelsApi#createChannel")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ChannelsApi#createChannel")
e.printStackTrace()
}| Name | Type | Description | Notes |
|---|---|---|---|
| body | PostChannelBody |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
deleteChannel(id)
Hide a channel and delete all messages
// Import classes:
//import io.swagger.client.infrastructure.*
//import io.github.cactacea.backend.*
val apiInstance = ChannelsApi()
val id : java.math.BigDecimal = 8.14 // java.math.BigDecimal | Channel identifier.
try {
apiInstance.deleteChannel(id)
} catch (e: ClientException) {
println("4xx response calling ChannelsApi#deleteChannel")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ChannelsApi#deleteChannel")
e.printStackTrace()
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | java.math.BigDecimal | Channel identifier. |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Channel findChannel(id)
Get basic information about a channel
// Import classes:
//import io.swagger.client.infrastructure.*
//import io.github.cactacea.backend.*
val apiInstance = ChannelsApi()
val id : java.math.BigDecimal = 8.14 // java.math.BigDecimal | Channel identifier.
try {
val result : Channel = apiInstance.findChannel(id)
println(result)
} catch (e: ClientException) {
println("4xx response calling ChannelsApi#findChannel")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ChannelsApi#findChannel")
e.printStackTrace()
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | java.math.BigDecimal | Channel identifier. |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
kotlin.Array<Channel> findChannelUsers(id, since, offset, count)
Get users list of a channel
// Import classes:
//import io.swagger.client.infrastructure.*
//import io.github.cactacea.backend.*
val apiInstance = ChannelsApi()
val id : java.math.BigDecimal = 8.14 // java.math.BigDecimal | Channel identifier.
val since : java.math.BigDecimal = 8.14 // java.math.BigDecimal | Filters users which started on since or later.
val offset : java.math.BigDecimal = 8.14 // java.math.BigDecimal | The offset of users. By default the value is 0.
val count : java.math.BigDecimal = 8.14 // java.math.BigDecimal | Maximum number of users returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.
try {
val result : kotlin.Array<Channel> = apiInstance.findChannelUsers(id, since, offset, count)
println(result)
} catch (e: ClientException) {
println("4xx response calling ChannelsApi#findChannelUsers")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ChannelsApi#findChannelUsers")
e.printStackTrace()
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | java.math.BigDecimal | Channel identifier. | |
| since | java.math.BigDecimal | Filters users which started on since or later. | [optional] |
| offset | java.math.BigDecimal | The offset of users. By default the value is 0. | [optional] |
| count | java.math.BigDecimal | Maximum number of users returned on one result page. By default the value is 20 entries. The page size can never be larger than 50. | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
hideChannel(id)
Hide a channel
// Import classes:
//import io.swagger.client.infrastructure.*
//import io.github.cactacea.backend.*
val apiInstance = ChannelsApi()
val id : java.math.BigDecimal = 8.14 // java.math.BigDecimal | Channel identifier.
try {
apiInstance.hideChannel(id)
} catch (e: ClientException) {
println("4xx response calling ChannelsApi#hideChannel")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ChannelsApi#hideChannel")
e.printStackTrace()
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | java.math.BigDecimal | Channel identifier. |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
joinChannel(id)
Join to a channel,
// Import classes:
//import io.swagger.client.infrastructure.*
//import io.github.cactacea.backend.*
val apiInstance = ChannelsApi()
val id : java.math.BigDecimal = 8.14 // java.math.BigDecimal | Channel identifier.
try {
apiInstance.joinChannel(id)
} catch (e: ClientException) {
println("4xx response calling ChannelsApi#joinChannel")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ChannelsApi#joinChannel")
e.printStackTrace()
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | java.math.BigDecimal | Channel identifier. |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
leaveChannel(id)
Leave from a channel
// Import classes:
//import io.swagger.client.infrastructure.*
//import io.github.cactacea.backend.*
val apiInstance = ChannelsApi()
val id : java.math.BigDecimal = 8.14 // java.math.BigDecimal | Invitation identifier.
try {
apiInstance.leaveChannel(id)
} catch (e: ClientException) {
println("4xx response calling ChannelsApi#leaveChannel")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ChannelsApi#leaveChannel")
e.printStackTrace()
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | java.math.BigDecimal | Invitation identifier. |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
reportChannel(id, body)
Report a channel
// Import classes:
//import io.swagger.client.infrastructure.*
//import io.github.cactacea.backend.*
val apiInstance = ChannelsApi()
val id : java.math.BigDecimal = 8.14 // java.math.BigDecimal | Channel identifier.
val body : PostChannelReportBody = // PostChannelReportBody |
try {
apiInstance.reportChannel(id, body)
} catch (e: ClientException) {
println("4xx response calling ChannelsApi#reportChannel")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ChannelsApi#reportChannel")
e.printStackTrace()
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | java.math.BigDecimal | Channel identifier. | |
| body | PostChannelReportBody |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
showChannel(id)
Show a channel
// Import classes:
//import io.swagger.client.infrastructure.*
//import io.github.cactacea.backend.*
val apiInstance = ChannelsApi()
val id : java.math.BigDecimal = 8.14 // java.math.BigDecimal | Channel identifier.
try {
apiInstance.showChannel(id)
} catch (e: ClientException) {
println("4xx response calling ChannelsApi#showChannel")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ChannelsApi#showChannel")
e.printStackTrace()
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | java.math.BigDecimal | Channel identifier. |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
updateChannel(id, body)
Update a channel
// Import classes:
//import io.swagger.client.infrastructure.*
//import io.github.cactacea.backend.*
val apiInstance = ChannelsApi()
val id : java.math.BigDecimal = 8.14 // java.math.BigDecimal | Channel identifier.
val body : PutChannelBody = // PutChannelBody |
try {
apiInstance.updateChannel(id, body)
} catch (e: ClientException) {
println("4xx response calling ChannelsApi#updateChannel")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ChannelsApi#updateChannel")
e.printStackTrace()
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | java.math.BigDecimal | Channel identifier. | |
| body | PutChannelBody |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined