PublicHolidayQueryService.java
package edu.ucsb.cs156.spring.backenddemo.services;
import org.springframework.web.client.RestTemplate;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.stereotype.Service;
import org.springframework.web.client.HttpClientErrorException;
@Slf4j
@Service
public class PublicHolidayQueryService {
private final RestTemplate restTemplate;
public PublicHolidayQueryService(RestTemplateBuilder restTemplateBuilder) {
restTemplate = restTemplateBuilder.build();
}
public static final String ENDPOINT = "";
public String getJSON(String year, String countryCode) throws HttpClientErrorException {
return "";
}
}