feat: add GET /api/v2/templatebuilder/bases endpoint - #26116
Merged
jeremyruppel merged 1 commit intoJun 12, 2026
Merged
Conversation
Docs preview📖 View docs preview for |
Contributor
Author
This was referenced Jun 5, 2026
jeremyruppel
marked this pull request as ready for review
June 5, 2026 21:35
This was referenced Jun 9, 2026
jeremyruppel
force-pushed
the
jeremy/devex-275-be-get-apiv2templatebuilderbases-endpoint
branch
from
June 9, 2026 22:06
7bfe57b to
be2e41a
Compare
jeremyruppel
force-pushed
the
jeremy/devex-273-be-exampleid-os-map-base-template-tftmpl-files-docker-k8s
branch
from
June 9, 2026 22:06
dc0261b to
4a8bb2a
Compare
jeremyruppel
force-pushed
the
jeremy/devex-275-be-get-apiv2templatebuilderbases-endpoint
branch
from
June 12, 2026 17:20
be2e41a to
eb455ee
Compare
jeremyruppel
force-pushed
the
jeremy/devex-273-be-exampleid-os-map-base-template-tftmpl-files-docker-k8s
branch
from
June 12, 2026 17:20
4a8bb2a to
a99cffd
Compare
This was referenced Jun 12, 2026
zenithwolf1000
approved these changes
Jun 12, 2026
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
force-pushed
the
jeremy/devex-275-be-get-apiv2templatebuilderbases-endpoint
branch
from
June 12, 2026 21:20
eb455ee to
62af83c
Compare
jeremyruppel
deleted the
jeremy/devex-275-be-get-apiv2templatebuilderbases-endpoint
branch
June 12, 2026 21:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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-referencingtemplatebuilder.BaseTemplateIDs()withexamples.List(), enriching each entry with the OS from theexampleID -> OSmap.The endpoint is gated behind the template builder feature flag (returns 404 when disabled) and requires
policy.ActionReadonrbac.ResourceTemplate.Depends on #26115
Note
This PR was authored by Coder Agents on behalf of @jeremyruppel.