Merge pull request #5081 from vmarmol/put

Specified that PUT is a replace and not an update.
This commit is contained in:
Brian Grant
2015-03-05 10:32:55 -08:00
2 changed files with 3 additions and 3 deletions

View File

@@ -270,8 +270,8 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage RESTStorage
case "PUT": // Update a resource.
route := ws.PUT(action.Path).To(UpdateResource(updater, ctxFn, action.Namer, codec, resource, admit)).
Filter(m).
Doc("update the specified " + kind).
Operation("update" + kind).
Doc("replace the specified " + kind).
Operation("replace" + kind).
Reads(versionedObject)
addParams(route, action.Params)
ws.Route(route)