Skip to content

Commit

Permalink
[#24] refactor: uri 동사에서 명사로 변경
Browse files Browse the repository at this point in the history
- 제출이라는 의미를 주고 싶기 때문에 submit 동사 대신 submission 명사 사용
  • Loading branch information
NaMinhyeok committed Feb 5, 2025
1 parent 68b3c5a commit 108f0c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public ApiResponse<SurveyHistoryResponse> getSurveyHistory(
}

@ResponseStatus(HttpStatus.NO_CONTENT)
@PostMapping("/submit/{surveyId}")
@PostMapping("/{surveyId}/submission")
public ApiResponse<?> submitSurvey(
@AuthenticationPrincipal CustomUserDetails member,
@PathVariable Long surveyId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void getSurveyHistory() throws Exception {

mockMvc
.perform(
post("/api/v1/surveys/submit/{surveyId}", 1L)
post("/api/v1/surveys/{surveyId}/submission", 1L)
.contentType(MediaType.APPLICATION_JSON)
.content(objectMapper.writeValueAsString(request))
.with(csrf()))
Expand Down

0 comments on commit 108f0c9

Please sign in to comment.