mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add examples to api (#5331)
Co-authored-by: Dean Sheather <dean@deansheather.com>
This commit is contained in:
co-authored by
Dean Sheather
parent
6cc864c048
commit
ca0374b94f
@@ -189,7 +189,8 @@ export interface CreateTemplateVersionRequest {
|
||||
readonly name?: string
|
||||
readonly template_id?: string
|
||||
readonly storage_method: ProvisionerStorageMethod
|
||||
readonly file_id: string
|
||||
readonly file_id?: string
|
||||
readonly example_id?: string
|
||||
readonly provisioner: ProvisionerType
|
||||
readonly tags: Record<string, string>
|
||||
readonly parameter_values?: CreateParameterRequest[]
|
||||
@@ -668,6 +669,17 @@ export interface TemplateDAUsResponse {
|
||||
readonly entries: DAUEntry[]
|
||||
}
|
||||
|
||||
// From codersdk/templates.go
|
||||
export interface TemplateExample {
|
||||
readonly id: string
|
||||
readonly url: string
|
||||
readonly name: string
|
||||
readonly description: string
|
||||
readonly icon: string
|
||||
readonly tags: string[]
|
||||
readonly markdown: string
|
||||
}
|
||||
|
||||
// From codersdk/templates.go
|
||||
export interface TemplateGroup extends Group {
|
||||
readonly role: TemplateRole
|
||||
|
||||
Reference in New Issue
Block a user