All URIs are relative to https://localhost
| Method | HTTP request | Description |
|---|---|---|
| findUsersLikedComment | GET /comments/{id}/likes | Get users list who liked on a comment |
| likeComment | POST /comments/{id}/likes | Set a like on a comment |
| unlikeComment | DELETE /comments/{id}/likes | Remove a like on a comment |
kotlin.Array<User> findUsersLikedComment(id, since, offset, count)
Get users list who liked on a comment
// Import classes:
//import io.swagger.client.infrastructure.*
//import io.github.cactacea.backend.*
val apiInstance = CommentLikesApi()
val id : java.math.BigDecimal = 8.14 // java.math.BigDecimal | Comment 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<User> = apiInstance.findUsersLikedComment(id, since, offset, count)
println(result)
} catch (e: ClientException) {
println("4xx response calling CommentLikesApi#findUsersLikedComment")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CommentLikesApi#findUsersLikedComment")
e.printStackTrace()
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | java.math.BigDecimal | Comment 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
likeComment(id)
Set a like on a comment
// Import classes:
//import io.swagger.client.infrastructure.*
//import io.github.cactacea.backend.*
val apiInstance = CommentLikesApi()
val id : java.math.BigDecimal = 8.14 // java.math.BigDecimal | Comment Identifier.
try {
apiInstance.likeComment(id)
} catch (e: ClientException) {
println("4xx response calling CommentLikesApi#likeComment")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CommentLikesApi#likeComment")
e.printStackTrace()
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | java.math.BigDecimal | Comment Identifier. |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
unlikeComment(id)
Remove a like on a comment
// Import classes:
//import io.swagger.client.infrastructure.*
//import io.github.cactacea.backend.*
val apiInstance = CommentLikesApi()
val id : java.math.BigDecimal = 8.14 // java.math.BigDecimal | Comment Identifier.
try {
apiInstance.unlikeComment(id)
} catch (e: ClientException) {
println("4xx response calling CommentLikesApi#unlikeComment")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CommentLikesApi#unlikeComment")
e.printStackTrace()
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | java.math.BigDecimal | Comment Identifier. |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined