Skip to content

Commit

Permalink
Revert method so it doesnt break api contract
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnyguio authored and cezarsa committed Oct 2, 2018
1 parent d024ae4 commit e497fd3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/cluster.go
Expand Up @@ -89,7 +89,7 @@ func createCluster(w http.ResponseWriter, r *http.Request, t auth.Token) (err er

// title: update provisioner cluster
// path: /provisioner/clusters/{name}
// method: PUT
// method: POST
// consume: application/x-www-form-urlencoded
// produce: application/json
// responses:
Expand Down
2 changes: 1 addition & 1 deletion api/server.go
Expand Up @@ -403,7 +403,7 @@ func RunServer(dry bool) http.Handler {
m.Add("1.2", "GET", "/metrics", promhttp.Handler())

m.Add("1.3", "POST", "/provisioner/clusters", AuthorizationRequiredHandler(createCluster))
m.Add("1.4", "PUT", "/provisioner/clusters/{name}", AuthorizationRequiredHandler(updateCluster))
m.Add("1.4", "POST", "/provisioner/clusters/{name}", AuthorizationRequiredHandler(updateCluster))
m.Add("1.3", "GET", "/provisioner/clusters", AuthorizationRequiredHandler(listClusters))
m.Add("1.3", "DELETE", "/provisioner/clusters/{name}", AuthorizationRequiredHandler(deleteCluster))

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/api.yaml
Expand Up @@ -1679,7 +1679,7 @@ paths:
type: string
minLength: 1
description: Cluster name.
put:
post:
operationId: ClusterUpdate
description: Update cluster.
parameters:
Expand Down

0 comments on commit e497fd3

Please sign in to comment.