Skip to content

Detect available endpoints from the API spec (works without an admin key) - #76

Open
AndreaV-Lsi wants to merge 1 commit into
mainfrom
feat/spec-capabilities
Open

AndreaV-Lsi wants to merge 1 commit into
mainfrom
feat/spec-capabilities

Conversation

@AndreaV-Lsi

Copy link
Copy Markdown

Closes #75. Description follows once the matrix shows whether non-admin keys can read the spec on 14–17.

🤖 Generated with Claude Code

OpenProject reports coreVersion only to admin API keys, so the version
check can't run for most users. The server's OpenAPI spec lists every
endpoint it offers; compat now reads it once per client (api_paths /
has_endpoint) and version-gated features use it when the version is
hidden: sprint tools refuse up front with "not available on this server:
its API doesn't offer them" instead of calling and interpreting a 404.

Order in require(): version (admin keys, names the server version), then
the spec (any key), then the server's own answer (404 fallback).

Matrix checks: a non-admin key can read the spec, and the spec lists the
sprint endpoints exactly on 17.3+.

Closes #75

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AndreaV-Lsi AndreaV-Lsi added area:compat OpenProject version compatibility (last 4 majors) P1 Priority 1 labels Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:compat OpenProject version compatibility (last 4 majors) P1 Priority 1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

compat: detect available endpoints from /api/v3/spec.json (works without an admin key)

1 participant