Skip to content
Snippets Groups Projects
Commit 5bfdf3f0 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Use PUT instead of PATCH method for updates to features

All feature settings are replaced by the received object so the use of
PATCH does not make sense here. The session is "patched" but the HTTP
verb always relates to the URL which refers explicitly to features in
this case.

See https://tools.ietf.org/html/rfc5789.
parent ae20c6e2
Branches
Tags
No related merge requests found
...@@ -265,7 +265,7 @@ public class SessionController extends PaginationController { ...@@ -265,7 +265,7 @@ public class SessionController extends PaginationController {
return sessionService.getSessionFeatures(sessionkey); return sessionService.getSessionFeatures(sessionkey);
} }
@RequestMapping(value = "/{sessionkey}/features", method = RequestMethod.PATCH) @RequestMapping(value = "/{sessionkey}/features", method = RequestMethod.PUT)
public SessionFeature changeSessionFeatures( public SessionFeature changeSessionFeatures(
@PathVariable final String sessionkey, @PathVariable final String sessionkey,
@RequestBody final SessionFeature features, @RequestBody final SessionFeature features,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment