Update source code for Tasklet to load daily data

This commit is contained in:
YuCheng Hu 2020-04-16 14:03:59 -04:00
parent 153871f9d5
commit b23268777b
1 changed files with 1 additions and 2 deletions

View File

@ -36,8 +36,7 @@ public class Covid19Tasklet implements Tasklet {
RestTemplate restTemplate = new RestTemplate();
// GET CURRENT
ResponseEntity<Covid19Current[]> responseEntity = restTemplate.exchange("https://covidtracking.com/api/v1/states/current" +
".json",
ResponseEntity<Covid19Current[]> responseEntity = restTemplate.exchange("https://covidtracking.com/api/v1/states/current.json",
HttpMethod.GET,
null,
Covid19Current[].class);