Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add server API for UI templates#3570

Open
peterschmidt85 wants to merge 2 commits intomaster from
templates-api
Open

Add server API for UI templates #3570
peterschmidt85 wants to merge 2 commits intomaster from
templates-api

Conversation

@peterschmidt85
Copy link
Contributor

@peterschmidt85 peterschmidt85 commented Feb 12, 2026

Relates to #3569

Add POST /api/project/{project_name}/templates/list endpoint that serves UI templates from an external git repo configured via DSTACK_SERVER_TEMPLATES_REPO.

Currently returns only server-wide templates; project-specific templates will be added in a future iteration.

peterschmidt85 and others added 2 commits February 12, 2026 10:47
Add POST /api/project/{project_name}/templates/list endpoint that serves
UI templates from an external git repo configured via DSTACK_SERVER_TEMPLATES_REPO.
Templates are YAML files under .dstack/templates/ in the repo, parsed into
typed pydantic models with a discriminated union for parameter types.
Results are cached with a 3-minute TTL using cachetools.TTLCache.
Currently returns only server-wide templates; project-specific templates
will be added in a future iteration.
Co-authored-by: Cursor <cursoragent@cursor.com>
Match codebase pattern for version-dependent HTTPBearer status codes.
Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /