Skip to content

Commit fd788d7

Browse files
committed
fix : MapClient URI 만드는 방법 개선
1 parent 564b276 commit fd788d7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/main/java/eatda/client/map/MapClient.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ public MapClient(RestClient.Builder restClient, KakaoProperties properties) {
2323

2424
public List<StoreSearchResult> searchShops(String query) {
2525
return restClient.get()
26-
.uri(builder -> builder
27-
.path("https://dapi.kakao.com/v2/local/search/keyword.json")
26+
.uri("https://dapi.kakao.com/v2/local/search/keyword.json", builder -> builder
2827
.queryParam("query", query)
2928
.queryParam("category", "FD6")
3029
.queryParam("rect", "%s,%s,%s,%s".formatted(

src/test/java/eatda/client/map/MapClientTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class SearchShops {
3636

3737
@Test
3838
void 가게_검색을_할_수_있다() {
39-
String url = "https:/dapi.kakao.com/v2/local/search/keyword.json";
39+
String url = "https://dapi.kakao.com/v2/local/search/keyword.json";
4040
String responseBody = """
4141
{
4242
"documents": [

0 commit comments

Comments
 (0)