Polish formatting in Actuator API documentation

This commit is contained in:
Andy Wilkinson
2018-01-16 20:46:42 +00:00
parent 67a299020b
commit 3cf1fb6763
2 changed files with 12 additions and 2 deletions

View File

@@ -61,9 +61,9 @@ public class AbstractEndpointDocumentationTests {
protected String describeEnumValues(Class<? extends Enum<?>> enumType) {
return StringUtils
.collectionToCommaDelimitedString(Stream.of(enumType.getEnumConstants())
.collectionToDelimitedString(Stream.of(enumType.getEnumConstants())
.map((constant) -> "`" + constant.name() + "`")
.collect(Collectors.toList()));
.collect(Collectors.toList()), ", ");
}
protected OperationPreprocessor limit(String... keys) {

View File

@@ -0,0 +1,10 @@
|===
|Path|Type|Description
{{#fields}}
|{{#tableCellContent}}`+{{path}}+`{{/tableCellContent}}
|{{#tableCellContent}}`{{type}}`{{/tableCellContent}}
|{{#tableCellContent}}{{description}}{{/tableCellContent}}
{{/fields}}
|===