Skip to content

Console API: OpenAPI description from the route table #1759

Closed

Description

@JacobStephens2

This was generated by AI during triage.

Parent

#1753 (Spec: the Console API). Governing decision: ADR 0026.

What to build

The API publishes an OpenAPI description so scripts and agents can discover it. It is generated (for example with utoipa) from the same route table that pairs each route with its CLI twin. It is served at /api/v1/openapi.json, and a CLI twin prints it. Each operation lists its scope, its CLI twin and its JSON shape. Because it's generated from the table, routes added by later Tickets appear in it without extra work.

Acceptance criteria

  • /api/v1/openapi.json returns a valid OpenAPI document. Its CLI twin prints the same document and passes the parity test.
  • The parity test fails when the description and the routed /api/v1 endpoints differ (with a should-panic twin).
  • Every operation states its scope and its CLI twin.
  • No example or schema in it contains a token.
  • docs/guide.md points to the description.

Activity

  1. added
    enhancement
    ready-for-agent
    on Nov 5, 2026
  2. JacobStephens2 commented on Nov 5, 2026

    @JacobStephens2
    OwnerAuthor

    Closed by #1779, merged into issue-1753 by a thirdshift Ticket run with Self-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions