Skip to content

feat: add GET /api/v2/templatebuilder/bases endpoint#26116

Open
jeremyruppel wants to merge 1 commit into
jeremy/devex-273-be-exampleid-os-map-base-template-tftmpl-files-docker-k8sfrom
jeremy/devex-275-be-get-apiv2templatebuilderbases-endpoint
Open

feat: add GET /api/v2/templatebuilder/bases endpoint#26116
jeremyruppel wants to merge 1 commit into
jeremy/devex-273-be-exampleid-os-map-base-template-tftmpl-files-docker-k8sfrom
jeremy/devex-275-be-get-apiv2templatebuilderbases-endpoint

Conversation

@jeremyruppel
Copy link
Copy Markdown
Contributor

@jeremyruppel jeremyruppel commented Jun 5, 2026

Implement GET /api/v2/templatebuilder/bases, which returns the list of base templates available in the template builder. Reads from the bundled catalog by cross-referencing templatebuilder.BaseTemplateIDs() with examples.List(), enriching each entry with the OS from the exampleID -> OS map.

The endpoint is gated behind the template builder feature flag (returns 404 when disabled) and requires policy.ActionRead on rbac.ResourceTemplate.

Depends on #26115

Note

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

Implement the bases listing endpoint for the template builder. Returns
base templates from the bundled catalog with OS metadata resolved from
the exampleID->OS map. The endpoint is gated behind the template builder
feature flag and returns 404 when disabled.
@linear-code
Copy link
Copy Markdown

linear-code Bot commented Jun 5, 2026

DEVEX-275

@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/bases endpoint feat: add GET /api/v2/templatebuilder/bases endpoint Jun 5, 2026
@jeremyruppel jeremyruppel marked this pull request as ready for review June 5, 2026 21:35
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