Reuses Api
Reuse related operations
Functions
delete Reuse
Link copied to clipboard
Delete a given reuse
delete Reuse Badge
Link copied to clipboard
abstract Flow<DgfrCallState<Boolean>> deleteReuseBadge(String badgeKind, String reuse)
Content copied to clipboard
Delete a badge for a given reuse
delete Unfeature Reuse
Link copied to clipboard
Unmark a reuse as featured
delete Unfollow Reuse
Link copied to clipboard
Unfollow an object given its ID Returns the number of followers left after the operation
get Available Reuse Badges
Link copied to clipboard
List all available reuse badges and their labels TODO : check the return content
get List Reuse Followers
Link copied to clipboard
abstract Flow<DgfrCallState<FollowPage>> getListReuseFollowers(String id, Integer page, Integer pageSize)
Content copied to clipboard
List all followers for a given object
get List Reuses
Link copied to clipboard
get Reuse
Link copied to clipboard
Fetch a given reuse
get Reuse Types
Link copied to clipboard
List all reuse types
get Suggest Reuses
Link copied to clipboard
abstract Flow<DgfrCallState<List<ReuseSuggestion>>> getSuggestReuses(String q, Integer size)
Content copied to clipboard
Suggest reuses
post Add Reuse Badge
Link copied to clipboard
abstract Flow<DgfrCallState<Badge>> postAddReuseBadge(String reuse, Badge payload)
Content copied to clipboard
Create a new badge for a given reuse
post Create Reuse
Link copied to clipboard
Create a new object
post Feature Reuse
Link copied to clipboard
Mark a reuse as featured
post Follow Reuse
Link copied to clipboard
Follow an object given its ID Returns the number of followers left after the operation
post Reuse Add Dataset
Link copied to clipboard
abstract Flow<DgfrCallState<Reuse>> postReuseAddDataset(String reuse, DatasetReference payload)
Content copied to clipboard
Add a dataset to a given reuse
post Reuse Image
Link copied to clipboard
abstract Flow<DgfrCallState<UploadedImage>> postReuseImage(String reuse, ByteArray file, String fileName, String contentType)
Content copied to clipboard
Upload a new reuse image
put Update Reuse
Link copied to clipboard
abstract Flow<DgfrCallState<Reuse>> putUpdateReuse(String reuse, Reuse payload)
Content copied to clipboard
Update a given reuse
Inheritors
DgfrService
Link copied to clipboard