[Spring MVC] API 문서화
[Spring Rest Docs]
//컨텐츠 실습 내용
//검증 후 문서화 메서드
.andDo(document(식별자,
getRequestPreProcessor(), getResponsePreProcessor(),
requestFields(), responseFields() 등);
//body fields ex
fieldWithPath("memberId").type(JsonFieldType.NUMBER).description("회원 식별자").ignored(),
fieldWithPath("phone").type(JsonFieldType.STRING).description("휴대폰 번호").optional(),
fieldWithPath("data").type(JsonFieldType.OBJECT).description("결과 데이터")
fieldWithPath("data.email").type(JsonFieldType.STRING).description("이메일")
//index.adoc
.curl-request
include::{snippets}/post-member/curl-request.adoc[]
[기타]
<느낀 점>
금요일이라 그런지 마음이 아침부터 너무 붕뜬다..ㅎ
그래도 이번 주는 새해 버프로, 평일 월화수목 4일 내내 저녁 8~11시에 3시간씩 자습했다.
자습 퀄리티는 장담하지 못하지만, 일단 앉아있는 습관을 들이려고 노력한 것에 칭찬함..
원래라면 오늘도 저녁에 앉아있어야 하겠지만,, 마음 떴음ㅎㅎ
대신에 일요일 저녁에 조금 앉아있어볼 생각이다.
일요일 저녁에 공부한다면, 공부할 것은 다음과 같다.