retrieveGroups method

Future<ClientResponse<GroupResponse, void>> retrieveGroups()

Retrieves all the groups.

@returns {Promise<ClientResponse

Implementation

Future<ClientResponse<GroupResponse, void>> retrieveGroups() {
  return _start<GroupResponse, void>()
      .withUri('/api/group')
      .withMethod('GET')
      .withResponseHandler(
          defaultResponseHandlerBuilder((d) => GroupResponse.fromJson(d)))
      .go();
}