Added REST functionality for the groups API