Skip to content

Commit

Permalink
feat : ApiKeyProvider 필드명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Gyaak committed Aug 29, 2024
1 parent 4403c49 commit 1fd88f1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
import org.springframework.web.client.RestTemplate;
import org.springframework.web.util.DefaultUriBuilderFactory;

import com.talkka.server.api.core.config.ApiKeyProvider;
import com.talkka.server.api.core.exception.ApiClientException;
import com.talkka.server.api.datagg.config.BusApiKeyProperty;
import com.talkka.server.api.datagg.dto.BusArrivalBodyDto;
import com.talkka.server.api.datagg.dto.BusArrivalRespDto;
import com.talkka.server.api.datagg.dto.BusLocationBodyDto;
Expand All @@ -36,7 +36,7 @@
@RequiredArgsConstructor
public class SimpleBusApiService implements BusApiService {
private static final Logger log = LoggerFactory.getLogger(SimpleBusApiService.class);
private final BusApiKeyProperty busApiKeyProperty;
private final ApiKeyProvider apiKeyProvider;
private final RestTemplate restTemplate = new RestTemplate();
private static final String host = "apis.data.go.kr";

Expand Down Expand Up @@ -119,7 +119,7 @@ private URI getOpenApiUri(String path, MultiValueMap<String, String> params) {
.scheme("https")
.host(host)
.path(path)
.queryParam("serviceKey", this.busApiKeyProperty.getApiKey())
.queryParam("serviceKey", this.apiKeyProvider.getApiKey())
.queryParams(params)
.build();
}
Expand Down

0 comments on commit 1fd88f1

Please sign in to comment.