public class JacksonRequestFieldSnippet extends StandardTableSnippet
| Modifier and Type | Field and Description |
|---|---|
static String |
REQUEST_FIELDS |
| Constructor and Description |
|---|
JacksonRequestFieldSnippet() |
JacksonRequestFieldSnippet(Type requestBodyType,
boolean failOnUndocumentedFields) |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<org.springframework.restdocs.payload.FieldDescriptor> |
createFieldDescriptors(org.springframework.restdocs.operation.Operation operation,
org.springframework.web.method.HandlerMethod handlerMethod) |
JacksonRequestFieldSnippet |
failOnUndocumentedFields(boolean failOnUndocumentedFields) |
protected Type |
firstGenericType(org.springframework.core.MethodParameter param) |
String |
getFileName()
File name (= section name).
|
String |
getHeaderKey()
Section header key corresponding to entry in translation file.
|
protected String[] |
getTranslationKeys() |
protected Type |
getType(org.springframework.web.method.HandlerMethod method) |
boolean |
hasContent(org.springframework.restdocs.operation.Operation operation)
Flag if section will render non-empty content.
|
protected boolean |
isCollection(Class<?> type) |
JacksonRequestFieldSnippet |
requestBodyAsType(Type requestBodyType) |
protected boolean |
shouldFailOnUndocumentedFields() |
createModel, createModelForDescriptor, enrichModelpublic static final String REQUEST_FIELDS
public JacksonRequestFieldSnippet()
public JacksonRequestFieldSnippet(Type requestBodyType, boolean failOnUndocumentedFields)
public JacksonRequestFieldSnippet requestBodyAsType(Type requestBodyType)
public JacksonRequestFieldSnippet failOnUndocumentedFields(boolean failOnUndocumentedFields)
protected Type getType(org.springframework.web.method.HandlerMethod method)
public String getHeaderKey()
SectionSupportprotected boolean shouldFailOnUndocumentedFields()
protected String[] getTranslationKeys()
getTranslationKeys in class StandardTableSnippetprotected Collection<org.springframework.restdocs.payload.FieldDescriptor> createFieldDescriptors(org.springframework.restdocs.operation.Operation operation, org.springframework.web.method.HandlerMethod handlerMethod)
createFieldDescriptors in class StandardTableSnippetprotected Type firstGenericType(org.springframework.core.MethodParameter param)
protected boolean isCollection(Class<?> type)
public String getFileName()
SectionSupportgetFileName in interface SectionSupportpublic boolean hasContent(org.springframework.restdocs.operation.Operation operation)
SectionSupporthasContent in interface SectionSupportoperation - operationCopyright © 2018 Scalable Capital GmbH. All rights reserved.