Skip to content

Expand the CATMAID docs section into one runnable card per command - #98

Merged
Robbie1977 merged 1 commit into
mainfrom
catmaid-docs-commands
Aug 30, 2026
Merged

Expand the CATMAID docs section into one runnable card per command#98
Robbie1977 merged 1 commit into
mainfrom
catmaid-docs-commands

Conversation

@Robbie1977

Copy link
Copy Markdown
Contributor

What changed

The pass-through's 50 commands were a flat reference table inside the generic /catmaid/{instance}/{command} card — readable, not runnable. The CATMAID group now ends with a collapsed "all commands" block holding one card per registry command, generated client-side from the vocabulary /docs.json already carries: each card shows the upstream CATMAID call it wraps, the command's own parameters with pre-filled runnable examples (id-taking parameters get convertible VFB ids), the shared instance dropdown, and project/raw/extra. Endpoint-card construction is factored out and reused; the old table and its CSS go. New commands added to the registry appear on the page with no docs change.

How to test

pytest tests/test_api_docs.py, then python -m vfbquery.ha_api, open /, expand the CATMAID "all commands" block and run neuron_names — the pre-filled mixed VFB-id/skid example returns the envelope.

The pass-through's 50 commands were a flat reference table inside the
generic /catmaid/{instance}/{command} card — readable, not runnable. The
CATMAID group now ends with a collapsed 'all commands' block holding one
card per registry command, generated client-side from the vocabulary
/docs.json already carries: each card shows the upstream CATMAID call it
wraps, the command's own parameters with runnable pre-filled examples
(id-taking parameters pre-filled with convertible VFB ids), the shared
instance dropdown, and project/raw/extra. Endpoint-card construction is
factored out of render() and reused; the old table (and its CSS) goes.
Verified live: neuron_names runs from its card against fafb with the
mixed-id example and renders the envelope.
@Robbie1977
Robbie1977 merged commit 042c8cc into main Aug 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant