فهرست منبع

Final fixes to swagger model for update stack

jnfrati 3 سال پیش
والد
کامیت
106b71f67d
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 2 3
      api/server/router/v1/stack.go
  2. 1 0
      api/types/stacks.go

+ 2 - 3
api/server/router/v1/stack.go

@@ -823,13 +823,12 @@ func getV1StackRoutes(
 	// PATCH /api/v1/projects/{project_id}/clusters/{cluster_id}/namespaces/{namespace}/stacks/{stack_id} -> stack.NewStackUpdateStackHandler
 	// swagger:operation PATCH /api/v1/projects/{project_id}/clusters/{cluster_id}/namespaces/{namespace}/stacks/{stack_id} updateStack
 	//
-	// Updates a stack.
-	// Currently only the stack name can be updated.
+	// Updates a stack. Currently the only value available to update is the stack name.
 	//
 	// ---
 	// produces:
 	// - application/json
-	// summary: Add an application to a stack
+	// summary: Update Stack
 	// tags:
 	// - Stacks
 	// parameters:

+ 1 - 0
api/types/stacks.go

@@ -63,6 +63,7 @@ type CreateStackAppResourceRequest struct {
 	SourceConfigName string `json:"source_config_name" form:"required"`
 }
 
+// swagger:model
 type UpdateStackRequest struct {
 	Name string `json:"name" form:"required"`
 }