public class JacksonModelAttributeSnippet extends AbstractJacksonFieldSnippet
| Constructor and Description |
|---|
JacksonModelAttributeSnippet() |
JacksonModelAttributeSnippet(Collection<org.springframework.web.method.support.HandlerMethodArgumentResolver> handlerMethodArgumentResolvers,
boolean failOnUndocumentedFields) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
enrichModel(Map<String,Object> model,
org.springframework.web.method.HandlerMethod handlerMethod,
FieldDescriptors fieldDescriptors,
SnippetTranslationResolver translationResolver) |
String |
getHeaderKey(org.springframework.restdocs.operation.Operation operation)
Section header key corresponding to entry in translation file.
|
protected String[] |
getTranslationKeys() |
protected Type |
getType(org.springframework.web.method.HandlerMethod method) |
protected boolean |
isRequestMethodGet(org.springframework.web.method.HandlerMethod method)
is request method get supported
|
protected boolean |
shouldFailOnUndocumentedFields() |
createFieldDescriptors, getFileName, hasContent, isCollectioncreateModel, createModelForDescriptorpublic JacksonModelAttributeSnippet()
public JacksonModelAttributeSnippet(Collection<org.springframework.web.method.support.HandlerMethodArgumentResolver> handlerMethodArgumentResolvers, boolean failOnUndocumentedFields)
protected Type getType(org.springframework.web.method.HandlerMethod method)
getType in class AbstractJacksonFieldSnippetprotected boolean isRequestMethodGet(org.springframework.web.method.HandlerMethod method)
method - protected void enrichModel(Map<String,Object> model, org.springframework.web.method.HandlerMethod handlerMethod, FieldDescriptors fieldDescriptors, SnippetTranslationResolver translationResolver)
enrichModel in class StandardTableSnippetprotected boolean shouldFailOnUndocumentedFields()
shouldFailOnUndocumentedFields in class AbstractJacksonFieldSnippetpublic String getHeaderKey(org.springframework.restdocs.operation.Operation operation)
SectionSupportoperation - operationprotected String[] getTranslationKeys()
getTranslationKeys in class StandardTableSnippetCopyright © 2020 Scalable Capital GmbH. All rights reserved.