maybe
webClient .get() .uri("/repos/{owner}/{repo}/commits", owner, repo) .header(HttpHeaders.AUTHORIZATION, "token YOUR_GITHUB_TOKEN") .retrieve() .bodyToFlux(CommitDto.class);