REST API for groups