Function: @author crossoverJie Date: 2020/7/25 02:54 @since JDK 11
| 15 | * @since JDK 11 |
| 16 | */ |
| 17 | @FeignPlusClient(name = "github", url = "${github.url}", port = "${github.port}") |
| 18 | public interface Github { |
| 19 | |
| 20 | @GetMapping("/repos/{owner}/{repo}/contributors") |
| 21 | @Headers("Content-Type: application/json") |
| 22 | List<GitHubRes> contributors(@PathVariable("owner") String owner, @PathVariable("repo") String repo); |
| 23 | } |