Package | Description |
---|---|
org.springframework.restdocs.payload |
Documenting the payload of a RESTful API's requests and responses.
|
Modifier and Type | Class and Description |
---|---|
class |
SubsectionDescriptor
A description of a subsection, i.e.
|
Modifier and Type | Method and Description |
---|---|
static FieldDescriptor |
PayloadDocumentation.fieldWithPath(java.lang.String path)
Creates a
FieldDescriptor that describes a field with the given
path . |
FieldDescriptor |
FieldDescriptor.optional()
Marks the field as optional.
|
FieldDescriptor |
FieldDescriptor.type(java.lang.Object type)
Specifies the type of the field.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<FieldDescriptor> |
PayloadDocumentation.applyPathPrefix(java.lang.String pathPrefix,
java.util.List<FieldDescriptor> descriptors)
Creates a copy of the given
descriptors with the given pathPrefix
applied to their paths. |
protected java.util.List<FieldDescriptor> |
AbstractFieldsSnippet.getFieldDescriptors()
Returns the list of
FieldDescriptors that will be used to
generate the documentation. |
Modifier and Type | Method and Description |
---|---|
RequestPartFieldsSnippet |
RequestPartFieldsSnippet.and(FieldDescriptor... additionalDescriptors)
Returns a new
RequestPartFieldsSnippet configured with this snippet's
attributes and its descriptors combined with the given
additionalDescriptors . |
RequestFieldsSnippet |
RequestFieldsSnippet.and(FieldDescriptor... additionalDescriptors)
Returns a new
RequestFieldsSnippet configured with this snippet's
attributes and its descriptors combined with the given
additionalDescriptors . |
ResponseFieldsSnippet |
ResponseFieldsSnippet.and(FieldDescriptor... additionalDescriptors)
Returns a new
ResponseFieldsSnippet configured with this snippet's
attributes and its descriptors combined with the given
additionalDescriptors . |
RequestPartFieldsSnippet |
RequestPartFieldsSnippet.andWithPrefix(java.lang.String pathPrefix,
FieldDescriptor... additionalDescriptors)
Returns a new
RequestFieldsSnippet configured with this snippet's
attributes and its descriptors combined with the given
additionalDescriptors . |
RequestFieldsSnippet |
RequestFieldsSnippet.andWithPrefix(java.lang.String pathPrefix,
FieldDescriptor... additionalDescriptors)
Returns a new
RequestFieldsSnippet configured with this snippet's
attributes and its descriptors combined with the given
additionalDescriptors . |
ResponseFieldsSnippet |
ResponseFieldsSnippet.andWithPrefix(java.lang.String pathPrefix,
FieldDescriptor... additionalDescriptors)
Returns a new
ResponseFieldsSnippet configured with this snippet's
attributes and its descriptors combined with the given
additionalDescriptors . |
protected java.util.Map<java.lang.String,java.lang.Object> |
AbstractFieldsSnippet.createModelForDescriptor(FieldDescriptor descriptor)
Returns a model for the given
descriptor . |
static RequestFieldsSnippet |
PayloadDocumentation.relaxedRequestFields(FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of the API operations's
request payload. |
static RequestFieldsSnippet |
PayloadDocumentation.relaxedRequestFields(java.util.Map<java.lang.String,java.lang.Object> attributes,
FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of the API operation's
request payload. |
static RequestFieldsSnippet |
PayloadDocumentation.relaxedRequestFields(PayloadSubsectionExtractor<?> subsectionExtractor,
FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of the subsection of the
API operations's request payload extracted by the given subsectionExtractor
. |
static RequestFieldsSnippet |
PayloadDocumentation.relaxedRequestFields(PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.Map<java.lang.String,java.lang.Object> attributes,
FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of the subsection of the
API operation's request payload extracted by the given subsectionExtractor . |
static RequestPartFieldsSnippet |
PayloadDocumentation.relaxedRequestPartFields(java.lang.String part,
FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of the specified
part of the API operations's request payload. |
static RequestPartFieldsSnippet |
PayloadDocumentation.relaxedRequestPartFields(java.lang.String part,
java.util.Map<java.lang.String,java.lang.Object> attributes,
FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of the specified
part of the API operations's request payload. |
static RequestPartFieldsSnippet |
PayloadDocumentation.relaxedRequestPartFields(java.lang.String part,
PayloadSubsectionExtractor<?> subsectionExtractor,
FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of a subsection of the
specified part of the API operations's request payload. |
static RequestPartFieldsSnippet |
PayloadDocumentation.relaxedRequestPartFields(java.lang.String part,
PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.Map<java.lang.String,java.lang.Object> attributes,
FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of a subsection of the
specified part of the API operations's request payload. |
static ResponseFieldsSnippet |
PayloadDocumentation.relaxedResponseFields(FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of the API operation's
response payload. |
static ResponseFieldsSnippet |
PayloadDocumentation.relaxedResponseFields(java.util.Map<java.lang.String,java.lang.Object> attributes,
FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of the API operation's
response payload. |
static ResponseFieldsSnippet |
PayloadDocumentation.relaxedResponseFields(PayloadSubsectionExtractor<?> subsectionExtractor,
FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of a subsection of the API
operation's response payload. |
static ResponseFieldsSnippet |
PayloadDocumentation.relaxedResponseFields(PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.Map<java.lang.String,java.lang.Object> attributes,
FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of a subsection of the API
operation's response payload. |
static RequestFieldsSnippet |
PayloadDocumentation.requestFields(FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of the API operations's
request payload. |
static RequestFieldsSnippet |
PayloadDocumentation.requestFields(java.util.Map<java.lang.String,java.lang.Object> attributes,
FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of the API operation's
request payload. |
static RequestFieldsSnippet |
PayloadDocumentation.requestFields(PayloadSubsectionExtractor<?> subsectionExtractor,
FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of the subsection of API
operations's request payload extracted by the given subsectionExtractor . |
static RequestFieldsSnippet |
PayloadDocumentation.requestFields(PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.Map<java.lang.String,java.lang.Object> attributes,
FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of the subsection of the
API operation's request payload extracted by the given subsectionExtractor . |
static RequestPartFieldsSnippet |
PayloadDocumentation.requestPartFields(java.lang.String part,
FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of the specified
part of the API operations's request payload. |
static RequestPartFieldsSnippet |
PayloadDocumentation.requestPartFields(java.lang.String part,
java.util.Map<java.lang.String,java.lang.Object> attributes,
FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of the specified
part of the API operations's request payload. |
static RequestPartFieldsSnippet |
PayloadDocumentation.requestPartFields(java.lang.String part,
PayloadSubsectionExtractor<?> subsectionExtractor,
FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of a subsection of the
specified part of the API operations's request payload. |
static RequestPartFieldsSnippet |
PayloadDocumentation.requestPartFields(java.lang.String part,
PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.Map<java.lang.String,java.lang.Object> attributes,
FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of a subsection of the
specified part of the API operations's request payload. |
java.lang.Object |
FieldTypeResolver.resolveFieldType(FieldDescriptor fieldDescriptor)
Resolves the type of the field that is described by the given
fieldDescriptor based on the content of the payload. |
static ResponseFieldsSnippet |
PayloadDocumentation.responseFields(FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of the API operation's
response payload. |
static ResponseFieldsSnippet |
PayloadDocumentation.responseFields(java.util.Map<java.lang.String,java.lang.Object> attributes,
FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of the API operation's
response payload. |
static ResponseFieldsSnippet |
PayloadDocumentation.responseFields(PayloadSubsectionExtractor<?> subsectionExtractor,
FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of a subsection of the API
operation's response payload. |
static ResponseFieldsSnippet |
PayloadDocumentation.responseFields(PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.Map<java.lang.String,java.lang.Object> attributes,
FieldDescriptor... descriptors)
Returns a
Snippet that will document the fields of a subsection of the API
operation's response payload. |
Modifier and Type | Method and Description |
---|---|
RequestPartFieldsSnippet |
RequestPartFieldsSnippet.and(java.util.List<FieldDescriptor> additionalDescriptors)
Returns a new
RequestPartFieldsSnippet configured with this snippet's
attributes and its descriptors combined with the given
additionalDescriptors . |
RequestFieldsSnippet |
RequestFieldsSnippet.and(java.util.List<FieldDescriptor> additionalDescriptors)
Returns a new
RequestFieldsSnippet configured with this snippet's
attributes and its descriptors combined with the given
additionalDescriptors . |
ResponseFieldsSnippet |
ResponseFieldsSnippet.and(java.util.List<FieldDescriptor> additionalDescriptors)
Returns a new
ResponseFieldsSnippet configured with this snippet's
attributes and its descriptors combined with the given
additionalDescriptors . |
RequestPartFieldsSnippet |
RequestPartFieldsSnippet.andWithPrefix(java.lang.String pathPrefix,
java.util.List<FieldDescriptor> additionalDescriptors)
Returns a new
RequestFieldsSnippet configured with this snippet's
attributes and its descriptors combined with the given
additionalDescriptors . |
RequestFieldsSnippet |
RequestFieldsSnippet.andWithPrefix(java.lang.String pathPrefix,
java.util.List<FieldDescriptor> additionalDescriptors)
Returns a new
RequestFieldsSnippet configured with this snippet's
attributes and its descriptors combined with the given
additionalDescriptors . |
ResponseFieldsSnippet |
ResponseFieldsSnippet.andWithPrefix(java.lang.String pathPrefix,
java.util.List<FieldDescriptor> additionalDescriptors)
Returns a new
ResponseFieldsSnippet configured with this snippet's
attributes and its descriptors combined with the given
additionalDescriptors . |
static java.util.List<FieldDescriptor> |
PayloadDocumentation.applyPathPrefix(java.lang.String pathPrefix,
java.util.List<FieldDescriptor> descriptors)
Creates a copy of the given
descriptors with the given pathPrefix
applied to their paths. |
byte[] |
FieldPathPayloadSubsectionExtractor.extractSubsection(byte[] payload,
org.springframework.http.MediaType contentType,
java.util.List<FieldDescriptor> descriptors) |
default byte[] |
PayloadSubsectionExtractor.extractSubsection(byte[] payload,
org.springframework.http.MediaType contentType,
java.util.List<FieldDescriptor> descriptors)
Extracts a subsection of the given
payload that has the given
contentType and that is described by the given descriptors . |
static FieldTypeResolver |
FieldTypeResolver.forContentWithDescriptors(byte[] content,
org.springframework.http.MediaType contentType,
java.util.List<FieldDescriptor> descriptors)
Create a
FieldTypeResolver for the given content and
contentType , described by the given descriptors . |
static RequestFieldsSnippet |
PayloadDocumentation.relaxedRequestFields(java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields of the API operations's
request payload. |
static RequestFieldsSnippet |
PayloadDocumentation.relaxedRequestFields(java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields of the API operation's
request payload. |
static RequestFieldsSnippet |
PayloadDocumentation.relaxedRequestFields(PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields of the subsection of the
API operations's request payload extracted by the given subsectionExtractor
. |
static RequestFieldsSnippet |
PayloadDocumentation.relaxedRequestFields(PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields of the subsection of the
API operation's request payload extracted by the given subsectionExtractor . |
static RequestPartFieldsSnippet |
PayloadDocumentation.relaxedRequestPartFields(java.lang.String part,
java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields of the specified
part of the API operations's request payload. |
static RequestPartFieldsSnippet |
PayloadDocumentation.relaxedRequestPartFields(java.lang.String part,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields of the specified
part of the API operations's request payload. |
static RequestPartFieldsSnippet |
PayloadDocumentation.relaxedRequestPartFields(java.lang.String part,
PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields of a subsection of the
specified part of the API operations's request payload. |
static RequestPartFieldsSnippet |
PayloadDocumentation.relaxedRequestPartFields(java.lang.String part,
PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields of a subsection of the
specified part of the API operations's request payload. |
static ResponseFieldsSnippet |
PayloadDocumentation.relaxedResponseFields(java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields of the API operation's
response payload. |
static ResponseFieldsSnippet |
PayloadDocumentation.relaxedResponseFields(java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields of the API operation's
response payload. |
static ResponseFieldsSnippet |
PayloadDocumentation.relaxedResponseFields(PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields of a subsection of the API
operation's response payload. |
static ResponseFieldsSnippet |
PayloadDocumentation.relaxedResponseFields(PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields of a subsection of the API
operation's response payload. |
static RequestFieldsSnippet |
PayloadDocumentation.requestFields(java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields of the API operations's
request payload. |
static RequestFieldsSnippet |
PayloadDocumentation.requestFields(java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields of the API operation's
request payload. |
static RequestFieldsSnippet |
PayloadDocumentation.requestFields(PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields in the subsection of the
API operations's request payload extracted by the given subsectionExtractor
. |
static RequestFieldsSnippet |
PayloadDocumentation.requestFields(PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields of the subsection of the
API operation's request payload extracted by the given subsectionExtractor . |
static RequestPartFieldsSnippet |
PayloadDocumentation.requestPartFields(java.lang.String part,
java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields of the specified
part of the API operations's request payload. |
static RequestPartFieldsSnippet |
PayloadDocumentation.requestPartFields(java.lang.String part,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields of the specified
part of the API operations's request payload. |
static RequestPartFieldsSnippet |
PayloadDocumentation.requestPartFields(java.lang.String part,
PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields of a subsection of the
specified part of the API operations's request payload. |
static RequestPartFieldsSnippet |
PayloadDocumentation.requestPartFields(java.lang.String part,
PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields of a subsection of the
specified part of the API operations's request payload. |
static ResponseFieldsSnippet |
PayloadDocumentation.responseFields(java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields of the API operation's
response payload. |
static ResponseFieldsSnippet |
PayloadDocumentation.responseFields(java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields of the API operation's
response payload. |
static ResponseFieldsSnippet |
PayloadDocumentation.responseFields(PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields of a subsection of the API
operation's response payload. |
static ResponseFieldsSnippet |
PayloadDocumentation.responseFields(PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.List<FieldDescriptor> descriptors)
Returns a
Snippet that will document the fields of a subsection of the API
operation's response payload. |
Constructor and Description |
---|
AbstractFieldsSnippet(java.lang.String type,
java.util.List<FieldDescriptor> descriptors,
java.util.Map<java.lang.String,java.lang.Object> attributes,
boolean ignoreUndocumentedFields)
Creates a new
AbstractFieldsSnippet that will produce a snippet named
<type>-fields using a template named <type>-fields . |
AbstractFieldsSnippet(java.lang.String type,
java.util.List<FieldDescriptor> descriptors,
java.util.Map<java.lang.String,java.lang.Object> attributes,
boolean ignoreUndocumentedFields,
PayloadSubsectionExtractor<?> subsectionExtractor)
Creates a new
AbstractFieldsSnippet that will produce a snippet named
<type>-fields using a template named <type>-fields . |
AbstractFieldsSnippet(java.lang.String name,
java.lang.String type,
java.util.List<FieldDescriptor> descriptors,
java.util.Map<java.lang.String,java.lang.Object> attributes,
boolean ignoreUndocumentedFields)
Creates a new
AbstractFieldsSnippet that will produce a snippet named
<name>-fields using a template named <type>-fields . |
AbstractFieldsSnippet(java.lang.String name,
java.lang.String type,
java.util.List<FieldDescriptor> descriptors,
java.util.Map<java.lang.String,java.lang.Object> attributes,
boolean ignoreUndocumentedFields,
PayloadSubsectionExtractor<?> subsectionExtractor)
Creates a new
AbstractFieldsSnippet that will produce a snippet named
<name>-fields using a template named <type>-fields . |
RequestFieldsSnippet(java.util.List<FieldDescriptor> descriptors)
Creates a new
RequestFieldsSnippet that will document the fields in the
request using the given descriptors . |
RequestFieldsSnippet(java.util.List<FieldDescriptor> descriptors,
boolean ignoreUndocumentedFields)
Creates a new
RequestFieldsSnippet that will document the fields in the
request using the given descriptors . |
RequestFieldsSnippet(java.util.List<FieldDescriptor> descriptors,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Creates a new
RequestFieldsSnippet that will document the fields in the
request using the given descriptors . |
RequestFieldsSnippet(java.util.List<FieldDescriptor> descriptors,
java.util.Map<java.lang.String,java.lang.Object> attributes,
boolean ignoreUndocumentedFields)
Creates a new
RequestFieldsSnippet that will document the fields in the
request using the given descriptors . |
RequestFieldsSnippet(PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.List<FieldDescriptor> descriptors)
Creates a new
RequestFieldsSnippet that will document the fields in the
subsection of the request extracted by the given subsectionExtractor using
the given descriptors . |
RequestFieldsSnippet(PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.List<FieldDescriptor> descriptors,
boolean ignoreUndocumentedFields)
Creates a new
RequestFieldsSnippet that will document the fields in the
subsection of the request extracted by the given subsectionExtractor using
the given descriptors . |
RequestFieldsSnippet(PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.List<FieldDescriptor> descriptors,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Creates a new
RequestFieldsSnippet that will document the fields in the
subsection of the request extracted by the given subsectionExtractor using
the given descriptors . |
RequestFieldsSnippet(PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.List<FieldDescriptor> descriptors,
java.util.Map<java.lang.String,java.lang.Object> attributes,
boolean ignoreUndocumentedFields)
Creates a new
RequestFieldsSnippet that will document the fields in the
subsection of the request extracted by the given subsectionExtractor using
the given descriptors . |
RequestPartFieldsSnippet(java.lang.String partName,
java.util.List<FieldDescriptor> descriptors)
Creates a new
RequestPartFieldsSnippet that will document the fields in the
request part using the given descriptors . |
RequestPartFieldsSnippet(java.lang.String partName,
java.util.List<FieldDescriptor> descriptors,
boolean ignoreUndocumentedFields)
Creates a new
RequestPartFieldsSnippet that will document the fields in the
request part using the given descriptors . |
RequestPartFieldsSnippet(java.lang.String partName,
java.util.List<FieldDescriptor> descriptors,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Creates a new
RequestFieldsSnippet that will document the fields in the
request using the given descriptors . |
RequestPartFieldsSnippet(java.lang.String partName,
java.util.List<FieldDescriptor> descriptors,
java.util.Map<java.lang.String,java.lang.Object> attributes,
boolean ignoreUndocumentedFields)
Creates a new
RequestFieldsSnippet that will document the fields in the
request using the given descriptors . |
RequestPartFieldsSnippet(java.lang.String partName,
PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.List<FieldDescriptor> descriptors)
Creates a new
RequestPartFieldsSnippet that will document the fields in a
subsection of the request part using the given descriptors . |
RequestPartFieldsSnippet(java.lang.String partName,
PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.List<FieldDescriptor> descriptors,
boolean ignoreUndocumentedFields)
Creates a new
RequestPartFieldsSnippet that will document the fields in a
subsection the request part using the given descriptors . |
RequestPartFieldsSnippet(java.lang.String partName,
PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.List<FieldDescriptor> descriptors,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Creates a new
RequestPartFieldsSnippet that will document the fields in a
subsection of the request part using the given descriptors . |
RequestPartFieldsSnippet(java.lang.String partName,
PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.List<FieldDescriptor> descriptors,
java.util.Map<java.lang.String,java.lang.Object> attributes,
boolean ignoreUndocumentedFields)
Creates a new
RequestPartFieldsSnippet that will document the fields in a
subsection of the request part using the given descriptors . |
ResponseFieldsSnippet(java.util.List<FieldDescriptor> descriptors)
Creates a new
ResponseFieldsSnippet that will document the fields in the
response using the given descriptors . |
ResponseFieldsSnippet(java.util.List<FieldDescriptor> descriptors,
boolean ignoreUndocumentedFields)
Creates a new
ResponseFieldsSnippet that will document the fields in the
response using the given descriptors . |
ResponseFieldsSnippet(java.util.List<FieldDescriptor> descriptors,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Creates a new
ResponseFieldsSnippet that will document the fields in the
response using the given descriptors . |
ResponseFieldsSnippet(java.util.List<FieldDescriptor> descriptors,
java.util.Map<java.lang.String,java.lang.Object> attributes,
boolean ignoreUndocumentedFields)
Creates a new
ResponseFieldsSnippet that will document the fields in the
response using the given descriptors . |
ResponseFieldsSnippet(PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.List<FieldDescriptor> descriptors)
Creates a new
ResponseFieldsSnippet that will document the fields in a
subsection of the response using the given descriptors . |
ResponseFieldsSnippet(PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.List<FieldDescriptor> descriptors,
boolean ignoreUndocumentedFields)
Creates a new
ResponseFieldsSnippet that will document the fields in the
subsection of the response using the given descriptors . |
ResponseFieldsSnippet(PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.List<FieldDescriptor> descriptors,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Creates a new
ResponseFieldsSnippet that will document the fields in a
subsection of the response using the given descriptors . |
ResponseFieldsSnippet(PayloadSubsectionExtractor<?> subsectionExtractor,
java.util.List<FieldDescriptor> descriptors,
java.util.Map<java.lang.String,java.lang.Object> attributes,
boolean ignoreUndocumentedFields)
Creates a new
ResponseFieldsSnippet that will document the fields in a
subsection of the response using the given descriptors . |