Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Bookmark Assets API #718

Open
tnt1232007 opened this issue Apr 23, 2024 · 1 comment
Open

[Feature Request] Bookmark Assets API #718

tnt1232007 opened this issue Apr 23, 2024 · 1 comment

Comments

@tnt1232007
Copy link

Scenario

Hi, I am thinking of using a LLM to summerize the articles that I saved in Linkding.

Currently I am trying to do it with n8n:

  1. Fetch the bookmark article from Linkding
  2. Run its content through a LLM to summerize
  3. Save the response as an asset back to Linkding

But I find out there's no APIs available to read and upload assets afaik

Requests

  • Modify the existing GET Bookmark APIs to expose the Asset IDs
  • New set of Bookmark Assets APIs:
    • GET - Retrieve asset metadata by ID, as showed in /admin/bookmarks/bookmarkasset/<ASSET_ID>/change/
    • GET - Retrieve asset data by ID, either raw content or file download
      Extra if I can utilize the new reader-mode and optionally retrieve the content that has been processed
    • POST - Upload new asset to a bookmark
    • DELETE - Delete asset by ID, just for completeness

Please review and consider the implemention.
Thanks for the amazing works, especially the recently added features, I love the snapshot and reader mode.

@sissbruecker
Copy link
Owner

Exposing a list of assets through the bookmark details, and then having an endpoint for downloading an asset by ID would probably be a good start. Contributing that shouldn't be too difficult if you're interested.

Regarding reader mode, converting the HTML into a readable article actually only happens in the browser when you open the reader view, so that content is not available on the server. Depending on which language you want to use for processing your bookmarks there is probably some similar library for extracting the readable content from an HTML document.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants