diff --git a/mission/src/main/java/com/oing/restapi/MissionApi.java b/mission/src/main/java/com/oing/restapi/MissionApi.java index b922c8d3..a1cfaff4 100644 --- a/mission/src/main/java/com/oing/restapi/MissionApi.java +++ b/mission/src/main/java/com/oing/restapi/MissionApi.java @@ -3,9 +3,11 @@ import com.oing.dto.response.DailyMissionResponse; import com.oing.dto.response.MissionResponse; import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -17,7 +19,11 @@ public interface MissionApi { @Operation(summary = "ID를 통한 미션 조회", description = "미션 ID를 통해 미션 정보르 조회합니다.") @GetMapping("/{missionId}") - MissionResponse getMissionByMissionId(String missionId); + MissionResponse getMissionByMissionId( + @PathVariable + @Parameter(description = "미션 ID", example = "01HGW2N7EHJVJ4CJ999RRS2E97") + String missionId + ); @Operation(summary = "금일의 일일 미션 조회", description = "오늘 선정된 일일 미션을 조회합니다.") @GetMapping("/today")