kanishka-linux / reminiscence

Self-Hosted Bookmark And Archive Manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a REST API?

virtadpt opened this issue · comments

Is there a REST API for Reminiscence? I just did a couple of quick searches and didn't find any mention of one.

commented

Current API is not exactly RESTful, since it uses cookies and csrf tokens for managing session.
Providing some token/key based REST API is on to-do list. However, I'm not sure whether to provide RESTful or GraphQL API, I'll think about it.

A polite +1 for a RESTful API, please.

commented

I've exposed few functionalities of reminiscence using django rest framework.
The new REST api is mostly enough for getting authentication token and adding urls to a directory. (Good enough for developing browser addons).

Currently, one can get idea about api by looking at these tests and url patterns. I'll write proper documentation after some time.

Edit: Sample REST end points look like: /restapi/login, /restapi/add-url