Added REST functionality for the groups API

COPY PASTE TYPO