From af8d17d5a2dd8b40608473ab6098bfd99cdaa91b Mon Sep 17 00:00:00 2001 From: cernst72 Date: Mon, 15 Dec 2025 22:34:37 +0100 Subject: [PATCH] feat(vikunja-api)!: support new endpoint name BREAKING CHANGE: Upstream Vikunja renamed the endpoint /tasks/all to /tasks (https://github.com/go-vikunja/vikunja/pull/1988/). Starting from now vja will only work with this new API. --- README.md | 3 +++ vja/apiclient.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 96b5188..c5c8421 100755 --- a/README.md +++ b/README.md @@ -11,6 +11,9 @@ Manage your tasks and projects directly from the terminal with simple commands. It provides a command line interface for adding, viewing and editing todo tasks on a Vikunja Server. The goal is to support a command line based task workflow ~ similar to taskwarrior. +#### Important change in vja 5 +Vikunja clarified it's API. Since there is no API versioning in Vikunja, vja >= 5.0 will only support vikunja > v1.0.0-rc3, while vja < 5.0 is required for older Vikunja servers. + #### Important change in vja 4.10 New name for configuration file (`config.rc`) and XDG conform path lookup, see [Configuration](#configuration) diff --git a/vja/apiclient.py b/vja/apiclient.py index 2ce30eb..ba08e7f 100755 --- a/vja/apiclient.py +++ b/vja/apiclient.py @@ -175,7 +175,7 @@ class ApiClient: def get_tasks(self, exclude_completed=True): if self._cache["tasks"] is None: - url = f"{self._api_url}/tasks/all" + url = f"{self._api_url}/tasks" params = {"filter": "done=false"} if exclude_completed else {} self._cache["tasks"] = self._get_json(url, params) or [] return self._cache["tasks"] -- GitLab