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