Closed sunmingtao closed 3 years ago
https://projects.fivethirtyeight.com/soccer-predictions/forecasts/2020_la-liga_matches.json
String url = String.format(SOCCER_DATA_URL_TEMPLATE, 2020, League.EPL.getName()); RestTemplate restTemplate = new RestTemplate(); ResponseEntity<List<RawMatch>> actualExample = restTemplate.exchange(url, HttpMethod.GET, null, new ParameterizedTypeReference<>() {}); List<RawMatch> exampleList = actualExample.getBody(); exampleList.forEach(System.out::println);
https://projects.fivethirtyeight.com/soccer-predictions/forecasts/2020_la-liga_matches.json