Skip to content

Commit

Permalink
docs : 닉네임 업데이트 API 문서 요청 프로토콜 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
1000kkannoo committed Aug 15, 2024
1 parent 609379a commit 525393f
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 @@ -242,7 +242,7 @@ protected Object initController() {
RestDocumentationResultHandler document = documentHandler("update-nickname", prettyPrint(), prettyPrint(), resource);

// when // then
mockMvc.perform(RestDocumentationRequestBuilders.get("/api/register/nickname")
mockMvc.perform(RestDocumentationRequestBuilders.patch("/api/register/nickname")
.header("Authorization", "Bearer AccessToken")
.content(objectMapper.writeValueAsString(request))
.contentType(APPLICATION_JSON))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class AccountControllerTest extends ControllerTestSupport {
AccountRequest.Nickname request = new AccountRequest.Nickname("불편한 코끼리");

// when // then
mockMvc.perform(MockMvcRequestBuilders.get("/api/register/nickname")
mockMvc.perform(MockMvcRequestBuilders.patch("/api/register/nickname")
.header("Authorization", "Bearer AccessToken")
.content(objectMapper.writeValueAsString(request))
.contentType(APPLICATION_JSON))
Expand Down

0 comments on commit 525393f

Please sign in to comment.