mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-07-17 07:12:34 -05:00
Port the APIToken resource from /api/v1 to the Huma-backed /api/v2 at top-level /tokens. List/create/delete only — no ReadOne, no Update, matching v1. The list operation accepts an owner_id query param to list a caller-owned bot's tokens; create returns the cleartext token exactly once. Permissions are enforced by the model via the shared Do* helpers. The webtest ports the v1 model-level permission matrix onto the v2 HTTP surface (owner isolation, exact list cardinality, bot-owner authz, validation, forbidden delete) so v2 proves the contract independently.
8.4 KiB
8.4 KiB