ReusesApi

public interface ReusesApi implements WithApiKey

Reuse related operations

Functions

deleteReuse
Link copied to clipboard
abstract Flow<DgfrCallState<Boolean>> deleteReuse(String reuse)

Delete a given reuse

deleteReuseBadge
Link copied to clipboard
abstract Flow<DgfrCallState<Boolean>> deleteReuseBadge(String badgeKind, String reuse)

Delete a badge for a given reuse

deleteUnfeatureReuse
Link copied to clipboard
abstract Flow<DgfrCallState<Reuse>> deleteUnfeatureReuse(String reuse)

Unmark a reuse as featured

deleteUnfollowReuse
Link copied to clipboard
abstract Flow<DgfrCallState<Boolean>> deleteUnfollowReuse(String id)

Unfollow an object given its ID Returns the number of followers left after the operation

getAvailableReuseBadges
Link copied to clipboard
abstract Flow<DgfrCallState<Boolean>> getAvailableReuseBadges()

List all available reuse badges and their labels TODO : check the return content

getListReuseFollowers
Link copied to clipboard
abstract Flow<DgfrCallState<FollowPage>> getListReuseFollowers(String id, Integer page, Integer pageSize)

List all followers for a given object

getListReuses
Link copied to clipboard
abstract Flow<DgfrCallState<ReusePage>> getListReuses(String q, List<String> facets, String tag, String organization, String owner, String dataset, String type, String datasets, String followers, String badge, Boolean featured, String sort, Integer page, Integer pageSize)
getReuse
Link copied to clipboard
abstract Flow<DgfrCallState<Reuse>> getReuse(String reuse)

Fetch a given reuse

getReuseTypes
Link copied to clipboard
abstract Flow<DgfrCallState<List<ReuseType>>> getReuseTypes()

List all reuse types

getSuggestReuses
Link copied to clipboard
abstract Flow<DgfrCallState<List<ReuseSuggestion>>> getSuggestReuses(String q, Integer size)

Suggest reuses

postAddReuseBadge
Link copied to clipboard
abstract Flow<DgfrCallState<Badge>> postAddReuseBadge(String reuse, Badge payload)

Create a new badge for a given reuse

postCreateReuse
Link copied to clipboard
abstract Flow<DgfrCallState<Reuse>> postCreateReuse(Reuse payload)

Create a new object

postFeatureReuse
Link copied to clipboard
abstract Flow<DgfrCallState<Reuse>> postFeatureReuse(String reuse)

Mark a reuse as featured

postFollowReuse
Link copied to clipboard
abstract Flow<DgfrCallState<Boolean>> postFollowReuse(String id)

Follow an object given its ID Returns the number of followers left after the operation

postReuseAddDataset
Link copied to clipboard
abstract Flow<DgfrCallState<Reuse>> postReuseAddDataset(String reuse, DatasetReference payload)

Add a dataset to a given reuse

postReuseImage
Link copied to clipboard
abstract Flow<DgfrCallState<UploadedImage>> postReuseImage(String reuse, ByteArray file, String fileName, String contentType)

Upload a new reuse image

putUpdateReuse
Link copied to clipboard
abstract Flow<DgfrCallState<Reuse>> putUpdateReuse(String reuse, Reuse payload)

Update a given reuse

setApiKey
Link copied to clipboard
abstract Unit setApiKey(String apiKey)

Inheritors

DgfrService
Link copied to clipboard