Skip to content

Commit

Permalink
fix: Add missing PathVariable at input paramter of getMissionByMissio…
Browse files Browse the repository at this point in the history
…nId (#252)
  • Loading branch information
Kwon770 authored May 9, 2024
1 parent 2cc26d9 commit 0bb70fa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mission/src/main/java/com/oing/restapi/MissionApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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")
Expand Down

0 comments on commit 0bb70fa

Please sign in to comment.