code: public List<Group> getGroups(int page, int perPage) throws GitLabApiException {
          Response response = get(Response.Status.OK, getPageQueryParams(page, perPage), "groups");
          return (response.readEntity(new GenericType<List<Group>>() {}));
      }
docs: Get a list of groups (As user: my groups, as admin: all groups) and in the specified page range.
  
  <pre><code>GitLab Endpoint: GET /groups</code></pre>
  
  @param page the page to get
  @param perPage the number of Group instances per page
  @return the list of groups viewable by the authenticated userin the specified page range
  @throws GitLabApiException if any exception occurs