Commit 33052264 authored by Daniel Gerhardt's avatar Daniel Gerhardt

Add update support to content group endpoint

Content groups can be updated by sending the updated entity via PUT
request to the /room/{roomId}/contentgroup/{groupName} endpoint.
parent 06dd2225
......@@ -101,6 +101,12 @@ public class RoomController extends AbstractEntityController<Room> {
contentGroupService.addContentToGroup(id, groupName, contentId);
}
@PutMapping(CONTENTGROUP_MAPPING)
public void updateGroup(@PathVariable final String id, @PathVariable final String groupName,
@RequestBody final ContentGroup contentGroup) {
contentGroupService.updateContentGroup(contentGroup);
}
@GetMapping(STATS_MAPPING)
public RoomStatistics getStats(@PathVariable final String id) {
final RoomStatistics roomStatistics = new RoomStatistics();
......
Markdown is supported
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