public class PathParametersSnippet extends StandardTableSnippet
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH_PARAMETERS |
| Constructor and Description |
|---|
PathParametersSnippet() |
PathParametersSnippet(boolean failOnUndocumentedParams) |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.restdocs.snippet.Attributes.Attribute |
constraintAttribute(org.springframework.core.MethodParameter param,
ConstraintReader constraintReader) |
protected List<org.springframework.restdocs.payload.FieldDescriptor> |
createFieldDescriptors(org.springframework.restdocs.operation.Operation operation,
org.springframework.web.method.HandlerMethod handlerMethod) |
protected org.springframework.restdocs.snippet.Attributes.Attribute |
defaultValueAttribute(A annot) |
protected org.springframework.restdocs.snippet.Attributes.Attribute |
deprecatedAttribute(org.springframework.core.MethodParameter param,
A annot,
JavadocReader javadocReader) |
PathParametersSnippet |
failOnUndocumentedParams(boolean failOnUndocumentedParams) |
protected org.springframework.web.bind.annotation.PathVariable |
getAnnotation(org.springframework.core.MethodParameter param) |
protected String |
getDefaultValue(org.springframework.web.bind.annotation.PathVariable annotation) |
String |
getFileName()
File name (= section name).
|
String |
getHeaderKey()
Section header key corresponding to entry in translation file.
|
protected String |
getPath(org.springframework.web.bind.annotation.PathVariable annot) |
protected String[] |
getTranslationKeys() |
boolean |
hasContent(org.springframework.restdocs.operation.Operation operation)
Flag if section will render non-empty content.
|
protected boolean |
isCustomDefaultValue(String defaultValue) |
protected boolean |
isRequired(org.springframework.core.MethodParameter param,
org.springframework.web.bind.annotation.PathVariable annot) |
protected org.springframework.restdocs.snippet.Attributes.Attribute |
optionalsAttribute(org.springframework.core.MethodParameter param,
A annot) |
protected boolean |
shouldFailOnUndocumentedParams() |
createModel, createModelForDescriptor, enrichModelpublic static final String PATH_PARAMETERS
public PathParametersSnippet()
public PathParametersSnippet(boolean failOnUndocumentedParams)
public PathParametersSnippet failOnUndocumentedParams(boolean failOnUndocumentedParams)
protected boolean isRequired(org.springframework.core.MethodParameter param,
org.springframework.web.bind.annotation.PathVariable annot)
protected String getPath(org.springframework.web.bind.annotation.PathVariable annot)
protected org.springframework.web.bind.annotation.PathVariable getAnnotation(org.springframework.core.MethodParameter param)
public String getHeaderKey()
SectionSupportprotected boolean shouldFailOnUndocumentedParams()
protected String getDefaultValue(org.springframework.web.bind.annotation.PathVariable annotation)
protected String[] getTranslationKeys()
getTranslationKeys in class StandardTableSnippetprotected List<org.springframework.restdocs.payload.FieldDescriptor> createFieldDescriptors(org.springframework.restdocs.operation.Operation operation, org.springframework.web.method.HandlerMethod handlerMethod)
createFieldDescriptors in class StandardTableSnippetprotected boolean isCustomDefaultValue(String defaultValue)
protected org.springframework.restdocs.snippet.Attributes.Attribute constraintAttribute(org.springframework.core.MethodParameter param,
ConstraintReader constraintReader)
protected org.springframework.restdocs.snippet.Attributes.Attribute optionalsAttribute(org.springframework.core.MethodParameter param,
A annot)
protected org.springframework.restdocs.snippet.Attributes.Attribute deprecatedAttribute(org.springframework.core.MethodParameter param,
A annot,
JavadocReader javadocReader)
protected org.springframework.restdocs.snippet.Attributes.Attribute defaultValueAttribute(A annot)
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.