강의

멘토링

로드맵

Inflearn brand logo image

인프런 커뮤니티 질문&답변

티씨님의 프로필 이미지
티씨

작성한 질문수

스프링 기반 REST API 개발

스프링 REST Docs 각종 문서 조각 생성하기

음...rest docs responseFields에서 _links정 무시하고 싶으면

작성

·

370

9

relaxed를 쓰는건 ... 무조건 지양하고 싶어서 마음엔 들지 않지만.

저는.. 일단 이렇게 했습니다.

fieldWithPath("_links.*").ignored(),
fieldWithPath("_links.self.*").ignored(),
fieldWithPath("_links.events.*").ignored(),
fieldWithPath("_links.update.*").ignored()

답변 2

1

백기선님의 프로필 이미지
백기선
지식공유자

네 그렇게 할 수도 있죠. 감사합니다.

0

subsectionWithPath("_links").ignored()

이렇게도 가능하네요!

티씨님의 프로필 이미지
티씨

작성한 질문수

질문하기