diff --git a/api/http/handler/customtemplates/customtemplate_create.go b/api/http/handler/customtemplates/customtemplate_create.go index 63911b90b..c7c64520a 100644 --- a/api/http/handler/customtemplates/customtemplate_create.go +++ b/api/http/handler/customtemplates/customtemplate_create.go @@ -81,7 +81,7 @@ func (handler *Handler) createCustomTemplate(method string, r *http.Request) (*p type customTemplateFromFileContentPayload struct { // URL of the template's logo - Logo string `example:"https://cloudinovasi.id/assets/img/logos/nginx.png"` + Logo string `example:"https://portainer.io/img/logo.svg"` // Title of the template Title string `example:"Nginx" validate:"required"` // Description of the template @@ -181,7 +181,7 @@ func (handler *Handler) createCustomTemplateFromFileContent(r *http.Request) (*p type customTemplateFromGitRepositoryPayload struct { // URL of the template's logo - Logo string `example:"https://cloudinovasi.id/assets/img/logos/nginx.png"` + Logo string `example:"https://portainer.io/img/logo.svg"` // Title of the template Title string `example:"Nginx" validate:"required"` // Description of the template @@ -437,7 +437,7 @@ func (payload *customTemplateFromFileUploadPayload) Validate(r *http.Request) er // @param Platform formData int true "Platform associated to the template (1 - 'linux', 2 - 'windows')" Enums(1,2) // @param Type formData int true "Type of created stack (1 - swarm, 2 - compose, 3 - kubernetes)" Enums(1,2,3) // @param File formData file true "File" -// @param Logo formData string false "URL of the template's logo" example:"https://cloudinovasi.id/assets/img/logos/nginx.png" +// @param Logo formData string false "URL of the template's logo" example:"https://portainer.io/img/logo.svg" // @param Variables formData string false "A json array of variables definitions" example:"[{\"label\":\"image\",\"description\":\"Image name\",\"defaultValue\":\"nginx:latest\",\"name\":\"image\"}]" // @success 200 {object} portainer.CustomTemplate // @failure 400 "Invalid request" diff --git a/api/http/handler/customtemplates/customtemplate_update.go b/api/http/handler/customtemplates/customtemplate_update.go index 3109dff59..b614e055b 100644 --- a/api/http/handler/customtemplates/customtemplate_update.go +++ b/api/http/handler/customtemplates/customtemplate_update.go @@ -20,7 +20,7 @@ import ( type customTemplateUpdatePayload struct { // URL of the template's logo - Logo string `example:"https://cloudinovasi.id/assets/img/logos/nginx.png"` + Logo string `example:"https://portainer.io/img/logo.svg"` // Title of the template Title string `example:"Nginx" validate:"required"` // Description of the template diff --git a/api/portainer.go b/api/portainer.go index 72afb6c32..b5354c0e4 100644 --- a/api/portainer.go +++ b/api/portainer.go @@ -176,7 +176,7 @@ type ( // Valid values are: 1 - 'linux', 2 - 'windows' Platform CustomTemplatePlatform `json:"Platform" example:"1" enums:"1,2"` // URL of the template's logo - Logo string `json:"Logo" example:"https://cloudinovasi.id/assets/img/logos/nginx.png"` + Logo string `json:"Logo" example:"https://portainer.io/img/logo.svg"` // Type of created stack: // * 1 - swarm // * 2 - compose @@ -1134,7 +1134,7 @@ type ( // Default name for the stack/container to be used on deployment Name string `json:"name,omitempty" example:"mystackname"` // URL of the template's logo - Logo string `json:"logo,omitempty" example:"https://cloudinovasi.id/assets/img/logos/nginx.png"` + Logo string `json:"logo,omitempty" example:"https://portainer.io/img/logo.svg"` // A list of environment(endpoint) variables used during the template deployment Env []TemplateEnv `json:"env,omitempty"` // A note that will be displayed in the UI. Supports HTML content