Skip to content

Commit

Permalink
Chore: Edit API Docs
Browse files Browse the repository at this point in the history
- response type 추가
  • Loading branch information
sally0226 committed Jul 31, 2024
1 parent 25f62b8 commit a96a9d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/search/search.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class SearchController {
@Query('q') q: string,
@Query('rect') rect: string,
@Query('mapId') mapId: string,
) {
): Promise<SearchedPlaceResponseDto[]> {
return await this.searchService.searchPlacesWithMap(q, rect, mapId);
}

Expand All @@ -87,11 +87,12 @@ export class SearchController {
description: '카카오 좌표계 위도경도 "x1,x2,y1,y2"',
})
@ApiOperation({ summary: '카카오 좌표계(wcongnamul) 쿼리' })
@ApiResponse({ type: SearchedPlaceResponseDto, isArray: true })
@Get('places/kakao')
async searchPlacesByKakaoCoord(
@Query('q') q: string,
@Query('rect') rect: string,
) {
): Promise<SearchedPlaceResponseDto[]> {
return await this.searchService.searchPlaceList(q, rect, {
isKakaoCoord: true,
});
Expand Down

0 comments on commit a96a9d7

Please sign in to comment.