Skip to content

feat: add GET /api/v2/templatebuilder/modules endpoint#26117

Open
jeremyruppel wants to merge 1 commit into
jeremy/devex-275-be-get-apiv2templatebuilderbases-endpointfrom
jeremy/devex-276-be-get-apiv2templatebuildermodules-endpoint
Open

feat: add GET /api/v2/templatebuilder/modules endpoint#26117
jeremyruppel wants to merge 1 commit into
jeremy/devex-275-be-get-apiv2templatebuilderbases-endpointfrom
jeremy/devex-276-be-get-apiv2templatebuildermodules-endpoint

Conversation

@jeremyruppel
Copy link
Copy Markdown
Contributor

@jeremyruppel jeremyruppel commented Jun 5, 2026

Implement GET /api/v2/templatebuilder/modules, which returns the filtered list of modules available for a given base template. Reads from the bundled catalog via LoadModules() and applies OS-compatibility filtering based on the base query param.

Computed variables (e.g. agent_id) are excluded from the API response at the ToSDK() conversion boundary since they are wired automatically by the builder. The Computed field is removed from the SDK type. Adds CompatibleWithOS() to ModuleManifest for OS filtering.

Returns 400 for unknown base IDs and 404 when the template builder is disabled.

Depends on #26116

Note

This PR was authored by Coder Agents on behalf of @jeremyruppel.

Implement the modules listing endpoint for the template builder. Reads
from the bundled catalog via LoadModules(). Applies OS-compatibility
filtering based on the base query param. Excludes computed variables
(e.g. agent_id) from the API response since they are wired automatically
by the builder.
@linear-code
Copy link
Copy Markdown

linear-code Bot commented Jun 5, 2026

DEVEX-276

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 5, 2026

Docs preview

📖 View docs preview for docs/reference/api/schemas.md

Copy link
Copy Markdown
Contributor Author

jeremyruppel commented Jun 5, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@jeremyruppel jeremyruppel changed the title feat(coderd): add GET /api/v2/templatebuilder/modules endpoint feat: add GET /api/v2/templatebuilder/modules endpoint Jun 5, 2026
@jeremyruppel jeremyruppel marked this pull request as ready for review June 5, 2026 21:57
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