Static
createCreates a new bookmark.
The bookmark data.
The fetch function.
Optional
init: RequestInitOptional
init: RequestInitThe user's WebID.
Optional
defaultPrivateBookmarkDocUrl: stringDoc to store the bookmark in if no type registration is foundj
A promise resolving to true if the bookmark was created, false otherwise.
Static
deleteDeletes the bookmark at the given URL.
The URL of the bookmark to delete.
The fetch function to use for network requests.
Optional
init: RequestInitOptional
init: RequestInitA promise resolving to true if the bookmark was deleted, false otherwise.
Static
getGets a bookmark by URL.
The URL of the bookmark to get.
The fetch function to use for network requests.
Optional
init: RequestInitOptional
init: RequestInitA promise resolving to the bookmark, if found, or undefined.
Static
getGets all bookmarks for the given user's webId.
The fetch function to use for network requests.
Optional
init: RequestInitOptional
init: RequestInitThe user's webId.
Optional
defaultPrivateBookmarkDocUrl: stringThe default container url
A promise resolving to an array of the user's bookmarks.
Static
updateUpdates a bookmark resource in a Solid pod by replacing its metadata with the provided payload.
The URL of the bookmark resource to update
The updated bookmark metadata
The fetch function to use for network requests
Optional
init: RequestInitOptional
init: RequestInitThe updated bookmark object if successful, else undefined
The Bookmark class provides methods for CRUD over Bookmark resources in Solid.