mkucej / i-librarian-free

I, Librarian - open-source version of a PDF managing SaaS.
https://i-librarian.net
GNU General Public License v3.0
244 stars 28 forks source link

Add API with Token for queries #69

Open Babalion opened 2 years ago

Babalion commented 2 years ago

Goal

I would like to add all of my personal references to my webpage automatically.

At the moment I do it like this:

  1. Perform a search of papers which belong to me in I Librarian
  2. export the result to a .bib file
  3. Copy the file to my webserver

What I have tried

The search can be performed with the same URL again, if one is logged in.

If I try to pull the url via wget from my webserver, the problem is i can't use a simple POST request with cookie to log in due to the needed CSRF Token...

Feature request

Could you please add an authentication token which one could append to the query URL, so it would be easy to pull a .bib file via wget.

This is the easiest way to create an API.