🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

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

Merged
jeremyruppel merged 1 commit into
mainfrom
jeremy/devex-275-be-get-apiv2templatebuilderbases-endpoint
Jun 12, 2026
Merged

feat: add GET /api/v2/templatebuilder/bases endpoint#26116
jeremyruppel merged 1 commit into
mainfrom
jeremy/devex-275-be-get-apiv2templatebuilderbases-endpoint

Conversation

@jeremyruppel

@jeremyruppel jeremyruppel commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

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.

@linear-code

linear-code Bot commented Jun 5, 2026

Copy link
Copy Markdown

DEVEX-275

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

Docs preview

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

@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
@jeremyruppel
jeremyruppel force-pushed the jeremy/devex-275-be-get-apiv2templatebuilderbases-endpoint branch from 7bfe57b to be2e41a Compare June 9, 2026 22:06
@jeremyruppel
jeremyruppel force-pushed the jeremy/devex-273-be-exampleid-os-map-base-template-tftmpl-files-docker-k8s branch from dc0261b to 4a8bb2a Compare June 9, 2026 22:06
@jeremyruppel
jeremyruppel force-pushed the jeremy/devex-275-be-get-apiv2templatebuilderbases-endpoint branch from be2e41a to eb455ee Compare June 12, 2026 17:20
@jeremyruppel
jeremyruppel force-pushed the jeremy/devex-273-be-exampleid-os-map-base-template-tftmpl-files-docker-k8s branch from 4a8bb2a to a99cffd Compare June 12, 2026 17:20
Base automatically changed from jeremy/devex-273-be-exampleid-os-map-base-template-tftmpl-files-docker-k8s to main June 12, 2026 21:12
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.
@jeremyruppel
jeremyruppel force-pushed the jeremy/devex-275-be-get-apiv2templatebuilderbases-endpoint branch from eb455ee to 62af83c Compare June 12, 2026 21:20
@jeremyruppel
jeremyruppel merged commit 776fbfa into main Jun 12, 2026
51 of 53 checks passed
@jeremyruppel
jeremyruppel deleted the jeremy/devex-275-be-get-apiv2templatebuilderbases-endpoint branch June 12, 2026 21:40
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants