commit | d159863833c0736fabd18821c5d88cbd3f277e72 | [log] [tgz] |
---|---|---|
author | Shawn Pearce <sop@google.com> | Sat Jan 26 10:00:37 2013 -0800 |
committer | Shawn Pearce <sop@google.com> | Sat Jan 26 10:23:06 2013 -0800 |
tree | 574db48a3b7c1602242a47d4478a026c4501cebc | |
parent | 38aa5485ad87a77c042bfd1e4549794afe8ef51a [diff] |
Accept POST on supported REST collections POST on /groups/ should create a new resource whose id is determined from the input body. The AcceptsCreate interface does not work here as there was no id in the path remaining. Build a new interface AcceptsPost that handles POST calls on a collection using the collection itself to construct the view. This is primarily meant for TopLevelResource collections. Change-Id: I0086ffc69cf42905db8c98198a809bfa755b52dd