Skip to content

Commit

Permalink
docs: rest docs id 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
This2sho committed Oct 17, 2023
1 parent 847a3b5 commit fc430c8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion backend/src/docs/asciidoc/common/mypage-api.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
== 마이페이지

=== 회원 정보 조회
operation::profile[snippets='http-request,response-fields,http-response']
==== version 1
operation::profile-v1[snippets='http-request,response-fields,http-response']

==== version 2
operation::profile-v2[snippets='http-request,response-fields,http-response']

=== 내가 쓴 글 조회

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public MemberControllerDocsTest(final MockMvc mockMvc,
.header("X-API-VERSION", 1)
.sessionAttr(USER.getSessionId(), 회원.getId());

final RestDocumentationResultHandler 문서화 = document("profile",
final RestDocumentationResultHandler 문서화 = document("profile-v1",
responseFields(fieldWithPath("id").description("회원 id"),
fieldWithPath("nickname").description("닉네임")));

Expand All @@ -239,7 +239,7 @@ public MemberControllerDocsTest(final MockMvc mockMvc,
.header("X-API-VERSION", 2)
.sessionAttr(USER.getSessionId(), 회원.getId());

final RestDocumentationResultHandler 문서화 = document("profile",
final RestDocumentationResultHandler 문서화 = document("profile-v2",
responseFields(fieldWithPath("id").description("회원 id"),
fieldWithPath("nickname").description("닉네임"),
fieldWithPath("profileImage").description("프로필 사진")));
Expand Down

0 comments on commit fc430c8

Please sign in to comment.