Class SubsectionDescriptor
java.lang.Object
org.springframework.restdocs.snippet.AbstractDescriptor<T>
org.springframework.restdocs.snippet.IgnorableDescriptor<FieldDescriptor>
org.springframework.restdocs.payload.FieldDescriptor
org.springframework.restdocs.payload.SubsectionDescriptor
A description of a subsection, i.e. a field and all of its descendants, in a request or
response payload.
- Since:
- 1.2.0
- Author:
- Andy Wilkinson
-
Constructor Summary
ModifierConstructorDescriptionprotected
SubsectionDescriptor
(String path) Creates a newSubsectionDescriptor
describing the subsection with the givenpath
. -
Method Summary
Methods inherited from class org.springframework.restdocs.payload.FieldDescriptor
getPath, getType, isOptional, optional, type
Methods inherited from class org.springframework.restdocs.snippet.IgnorableDescriptor
ignored, isIgnored
Methods inherited from class org.springframework.restdocs.snippet.AbstractDescriptor
attributes, description, getAttributes, getDescription
-
Constructor Details
-
SubsectionDescriptor
Creates a newSubsectionDescriptor
describing the subsection with the givenpath
.- Parameters:
path
- the path
-