Uses of Interface
org.springframework.restdocs.payload.PayloadSubsectionExtractor
Package
Description
Documenting the payload of a RESTful API's requests and responses.
-
Uses of PayloadSubsectionExtractor in org.springframework.restdocs.payload
Modifier and TypeInterfaceDescriptioninterface
PayloadSubsectionExtractor<T extends PayloadSubsectionExtractor<T>>
Strategy interface for extracting a subsection of a payload.Modifier and TypeClassDescriptionclass
APayloadSubsectionExtractor
that extracts the subsection of the JSON payload identified by a field path.Modifier and TypeMethodDescriptionstatic PayloadSubsectionExtractor<?>
PayloadDocumentation.beneathPath
(String path) Returns aPayloadSubsectionExtractor
that will extract the subsection of the JSON payload found beneath the givenpath
.protected final PayloadSubsectionExtractor<?>
AbstractFieldsSnippet.getSubsectionExtractor()
Returns thePayloadSubsectionExtractor
, if any, used by this snippet.Modifier and TypeMethodDescriptionstatic RequestFieldsSnippet
PayloadDocumentation.relaxedRequestFields
(PayloadSubsectionExtractor<?> subsectionExtractor, List<FieldDescriptor> descriptors) Returns aSnippet
that will document the fields of the subsection of the API operations's request payload extracted by the givensubsectionExtractor
.static RequestFieldsSnippet
PayloadDocumentation.relaxedRequestFields
(PayloadSubsectionExtractor<?> subsectionExtractor, Map<String, Object> attributes, List<FieldDescriptor> descriptors) Returns aSnippet
that will document the fields of the subsection of the API operation's request payload extracted by the givensubsectionExtractor
.static RequestFieldsSnippet
PayloadDocumentation.relaxedRequestFields
(PayloadSubsectionExtractor<?> subsectionExtractor, Map<String, Object> attributes, FieldDescriptor... descriptors) Returns aSnippet
that will document the fields of the subsection of the API operation's request payload extracted by the givensubsectionExtractor
.static RequestFieldsSnippet
PayloadDocumentation.relaxedRequestFields
(PayloadSubsectionExtractor<?> subsectionExtractor, FieldDescriptor... descriptors) Returns aSnippet
that will document the fields of the subsection of the API operations's request payload extracted by the givensubsectionExtractor
.static RequestPartFieldsSnippet
PayloadDocumentation.relaxedRequestPartFields
(String part, PayloadSubsectionExtractor<?> subsectionExtractor, List<FieldDescriptor> descriptors) Returns aSnippet
that will document the fields of a subsection of the specifiedpart
of the API operations's request payload.static RequestPartFieldsSnippet
PayloadDocumentation.relaxedRequestPartFields
(String part, PayloadSubsectionExtractor<?> subsectionExtractor, Map<String, Object> attributes, List<FieldDescriptor> descriptors) Returns aSnippet
that will document the fields of a subsection of the specifiedpart
of the API operations's request payload.static RequestPartFieldsSnippet
PayloadDocumentation.relaxedRequestPartFields
(String part, PayloadSubsectionExtractor<?> subsectionExtractor, Map<String, Object> attributes, FieldDescriptor... descriptors) Returns aSnippet
that will document the fields of a subsection of the specifiedpart
of the API operations's request payload.static RequestPartFieldsSnippet
PayloadDocumentation.relaxedRequestPartFields
(String part, PayloadSubsectionExtractor<?> subsectionExtractor, FieldDescriptor... descriptors) Returns aSnippet
that will document the fields of a subsection of the specifiedpart
of the API operations's request payload.static ResponseFieldsSnippet
PayloadDocumentation.relaxedResponseFields
(PayloadSubsectionExtractor<?> subsectionExtractor, List<FieldDescriptor> descriptors) Returns aSnippet
that will document the fields of a subsection of the API operation's response payload.static ResponseFieldsSnippet
PayloadDocumentation.relaxedResponseFields
(PayloadSubsectionExtractor<?> subsectionExtractor, Map<String, Object> attributes, List<FieldDescriptor> descriptors) Returns aSnippet
that will document the fields of a subsection of the API operation's response payload.static ResponseFieldsSnippet
PayloadDocumentation.relaxedResponseFields
(PayloadSubsectionExtractor<?> subsectionExtractor, Map<String, Object> attributes, FieldDescriptor... descriptors) Returns aSnippet
that will document the fields of a subsection of the API operation's response payload.static ResponseFieldsSnippet
PayloadDocumentation.relaxedResponseFields
(PayloadSubsectionExtractor<?> subsectionExtractor, FieldDescriptor... descriptors) Returns aSnippet
that will document the fields of a subsection of the API operation's response payload.static RequestBodySnippet
PayloadDocumentation.requestBody
(PayloadSubsectionExtractor<?> subsectionExtractor) Returns aSnippet
that will document a subsection of the body of the API operation's request payload.static RequestBodySnippet
PayloadDocumentation.requestBody
(PayloadSubsectionExtractor<?> subsectionExtractor, Map<String, Object> attributes) Returns aSnippet
that will document a subsection of the body of the API operation's request payload.static RequestFieldsSnippet
PayloadDocumentation.requestFields
(PayloadSubsectionExtractor<?> subsectionExtractor, List<FieldDescriptor> descriptors) Returns aSnippet
that will document the fields in the subsection of the API operations's request payload extracted by the givensubsectionExtractor
.static RequestFieldsSnippet
PayloadDocumentation.requestFields
(PayloadSubsectionExtractor<?> subsectionExtractor, Map<String, Object> attributes, List<FieldDescriptor> descriptors) Returns aSnippet
that will document the fields of the subsection of the API operation's request payload extracted by the givensubsectionExtractor
.static RequestFieldsSnippet
PayloadDocumentation.requestFields
(PayloadSubsectionExtractor<?> subsectionExtractor, Map<String, Object> attributes, FieldDescriptor... descriptors) Returns aSnippet
that will document the fields of the subsection of the API operation's request payload extracted by the givensubsectionExtractor
.static RequestFieldsSnippet
PayloadDocumentation.requestFields
(PayloadSubsectionExtractor<?> subsectionExtractor, FieldDescriptor... descriptors) Returns aSnippet
that will document the fields of the subsection of API operations's request payload extracted by the givensubsectionExtractor
.static RequestPartBodySnippet
PayloadDocumentation.requestPartBody
(String partName, PayloadSubsectionExtractor<?> subsectionExtractor) Returns aSnippet
that will document a subsection of the body of specified part of the API operation's request payload.static RequestPartBodySnippet
PayloadDocumentation.requestPartBody
(String partName, PayloadSubsectionExtractor<?> subsectionExtractor, Map<String, Object> attributes) Returns aSnippet
that will document a subsection of the body of specified part of the API operation's request payload.static RequestPartFieldsSnippet
PayloadDocumentation.requestPartFields
(String part, PayloadSubsectionExtractor<?> subsectionExtractor, List<FieldDescriptor> descriptors) Returns aSnippet
that will document the fields of a subsection of the specifiedpart
of the API operations's request payload.static RequestPartFieldsSnippet
PayloadDocumentation.requestPartFields
(String part, PayloadSubsectionExtractor<?> subsectionExtractor, Map<String, Object> attributes, List<FieldDescriptor> descriptors) Returns aSnippet
that will document the fields of a subsection of the specifiedpart
of the API operations's request payload.static RequestPartFieldsSnippet
PayloadDocumentation.requestPartFields
(String part, PayloadSubsectionExtractor<?> subsectionExtractor, Map<String, Object> attributes, FieldDescriptor... descriptors) Returns aSnippet
that will document the fields of a subsection of the specifiedpart
of the API operations's request payload.static RequestPartFieldsSnippet
PayloadDocumentation.requestPartFields
(String part, PayloadSubsectionExtractor<?> subsectionExtractor, FieldDescriptor... descriptors) Returns aSnippet
that will document the fields of a subsection of the specifiedpart
of the API operations's request payload.static ResponseBodySnippet
PayloadDocumentation.responseBody
(PayloadSubsectionExtractor<?> subsectionExtractor) Returns aSnippet
that will document a subsection of the body of the API operation's response payload.static ResponseBodySnippet
PayloadDocumentation.responseBody
(PayloadSubsectionExtractor<?> subsectionExtractor, Map<String, Object> attributes) Returns aSnippet
that will document a subsection of the body of the API operation's response payload.static ResponseFieldsSnippet
PayloadDocumentation.responseFields
(PayloadSubsectionExtractor<?> subsectionExtractor, List<FieldDescriptor> descriptors) Returns aSnippet
that will document the fields of a subsection of the API operation's response payload.static ResponseFieldsSnippet
PayloadDocumentation.responseFields
(PayloadSubsectionExtractor<?> subsectionExtractor, Map<String, Object> attributes, List<FieldDescriptor> descriptors) Returns aSnippet
that will document the fields of a subsection of the API operation's response payload.static ResponseFieldsSnippet
PayloadDocumentation.responseFields
(PayloadSubsectionExtractor<?> subsectionExtractor, Map<String, Object> attributes, FieldDescriptor... descriptors) Returns aSnippet
that will document the fields of a subsection of the API operation's response payload.static ResponseFieldsSnippet
PayloadDocumentation.responseFields
(PayloadSubsectionExtractor<?> subsectionExtractor, FieldDescriptor... descriptors) Returns aSnippet
that will document the fields of a subsection of the API operation's response payload.ModifierConstructorDescriptionprotected
AbstractBodySnippet
(String name, String type, PayloadSubsectionExtractor<?> subsectionExtractor, Map<String, Object> attributes) Creates a newAbstractBodySnippet
that will produce a snippet named<name>-body
using a template named<type>-body
.protected
AbstractBodySnippet
(String type, PayloadSubsectionExtractor<?> subsectionExtractor, Map<String, Object> attributes) Creates a newAbstractBodySnippet
that will produce a snippet named<type>-body
using a template named<type>-body
.protected
AbstractFieldsSnippet
(String name, String type, List<FieldDescriptor> descriptors, Map<String, Object> attributes, boolean ignoreUndocumentedFields, PayloadSubsectionExtractor<?> subsectionExtractor) Creates a newAbstractFieldsSnippet
that will produce a snippet named<name>-fields
using a template named<type>-fields
.protected
AbstractFieldsSnippet
(String type, List<FieldDescriptor> descriptors, Map<String, Object> attributes, boolean ignoreUndocumentedFields, PayloadSubsectionExtractor<?> subsectionExtractor) Creates a newAbstractFieldsSnippet
that will produce a snippet named<type>-fields
using a template named<type>-fields
.RequestBodySnippet
(PayloadSubsectionExtractor<?> subsectionExtractor) Creates a newRequestBodySnippet
that will document the subsection of the request body extracted by the givensubsectionExtractor
.RequestBodySnippet
(PayloadSubsectionExtractor<?> subsectionExtractor, Map<String, Object> attributes) Creates a newRequestBodySnippet
that will document the subsection of the request body extracted by the givensubsectionExtractor
.protected
RequestFieldsSnippet
(PayloadSubsectionExtractor<?> subsectionExtractor, List<FieldDescriptor> descriptors) Creates a newRequestFieldsSnippet
that will document the fields in the subsection of the request extracted by the givensubsectionExtractor
using the givendescriptors
.protected
RequestFieldsSnippet
(PayloadSubsectionExtractor<?> subsectionExtractor, List<FieldDescriptor> descriptors, boolean ignoreUndocumentedFields) Creates a newRequestFieldsSnippet
that will document the fields in the subsection of the request extracted by the givensubsectionExtractor
using the givendescriptors
.protected
RequestFieldsSnippet
(PayloadSubsectionExtractor<?> subsectionExtractor, List<FieldDescriptor> descriptors, Map<String, Object> attributes) Creates a newRequestFieldsSnippet
that will document the fields in the subsection of the request extracted by the givensubsectionExtractor
using the givendescriptors
.protected
RequestFieldsSnippet
(PayloadSubsectionExtractor<?> subsectionExtractor, List<FieldDescriptor> descriptors, Map<String, Object> attributes, boolean ignoreUndocumentedFields) Creates a newRequestFieldsSnippet
that will document the fields in the subsection of the request extracted by the givensubsectionExtractor
using the givendescriptors
.RequestPartBodySnippet
(String partName, PayloadSubsectionExtractor<?> subsectionExtractor) Creates a newRequestPartBodySnippet
that will document the subsection of the body of the request part with the givenpartName
extracted by the givensubsectionExtractor
.RequestPartBodySnippet
(String partName, PayloadSubsectionExtractor<?> subsectionExtractor, Map<String, Object> attributes) Creates a newRequestPartBodySnippet
that will document the body of the request part with the givenpartName
.protected
RequestPartFieldsSnippet
(String partName, PayloadSubsectionExtractor<?> subsectionExtractor, List<FieldDescriptor> descriptors) Creates a newRequestPartFieldsSnippet
that will document the fields in a subsection of the request part using the givendescriptors
.protected
RequestPartFieldsSnippet
(String partName, PayloadSubsectionExtractor<?> subsectionExtractor, List<FieldDescriptor> descriptors, boolean ignoreUndocumentedFields) Creates a newRequestPartFieldsSnippet
that will document the fields in a subsection the request part using the givendescriptors
.protected
RequestPartFieldsSnippet
(String partName, PayloadSubsectionExtractor<?> subsectionExtractor, List<FieldDescriptor> descriptors, Map<String, Object> attributes) Creates a newRequestPartFieldsSnippet
that will document the fields in a subsection of the request part using the givendescriptors
.protected
RequestPartFieldsSnippet
(String partName, PayloadSubsectionExtractor<?> subsectionExtractor, List<FieldDescriptor> descriptors, Map<String, Object> attributes, boolean ignoreUndocumentedFields) Creates a newRequestPartFieldsSnippet
that will document the fields in a subsection of the request part using the givendescriptors
.ResponseBodySnippet
(PayloadSubsectionExtractor<?> subsectionExtractor) Creates a newResponseBodySnippet
that will document the subsection of the response body extracted by the givensubsectionExtractor
.ResponseBodySnippet
(PayloadSubsectionExtractor<?> subsectionExtractor, Map<String, Object> attributes) Creates a newResponseBodySnippet
that will document the subsection of the response body extracted by the givensubsectionExtractor
.protected
ResponseFieldsSnippet
(PayloadSubsectionExtractor<?> subsectionExtractor, List<FieldDescriptor> descriptors) Creates a newResponseFieldsSnippet
that will document the fields in a subsection of the response using the givendescriptors
.protected
ResponseFieldsSnippet
(PayloadSubsectionExtractor<?> subsectionExtractor, List<FieldDescriptor> descriptors, boolean ignoreUndocumentedFields) Creates a newResponseFieldsSnippet
that will document the fields in the subsection of the response using the givendescriptors
.protected
ResponseFieldsSnippet
(PayloadSubsectionExtractor<?> subsectionExtractor, List<FieldDescriptor> descriptors, Map<String, Object> attributes) Creates a newResponseFieldsSnippet
that will document the fields in a subsection of the response using the givendescriptors
.protected
ResponseFieldsSnippet
(PayloadSubsectionExtractor<?> subsectionExtractor, List<FieldDescriptor> descriptors, Map<String, Object> attributes, boolean ignoreUndocumentedFields) Creates a newResponseFieldsSnippet
that will document the fields in a subsection of the response using the givendescriptors
.