class TeamsTemplate extends AbstractGithubTemplate implements TeamsOperations {

	@Override
	public List<Team> listTeams(String organization) {
		Map<String, Object> uriVariables = new HashMap<>();
		uriVariables.put("organization", organization);

		List<Team> teamList = new ArrayList<Team>();
		Iterator<List<Team>> iter = new PagingIterator<>(getRestOperations(),
				buildUri("/orgs/{organization}/teams?per_page=25", uriVariables), teamListTypeRef);
		while (iter.hasNext()) {
			teamList.addAll(iter.next());
		}
		return teamList;
	}

	public  TeamsTemplate(RestOperations restOperations, GithubApiUriUtil uriUtil);
	public  TeamsTemplate(RestOperations restOperations);

}