Package org.forgerock.api.markup
Class ApiDocGenerator
- java.lang.Object
-
- org.forgerock.api.markup.ApiDocGenerator
-
public final class ApiDocGenerator extends Object
Generates static AsciiDoc documentation for CREST API Descriptors.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
execute(String title, ApiDescription apiDescription, Path inputDirPath, Path outputDirPath, ApiDescription... externalApiDescriptions)
Generates AsciiDoc documentation for a CREST API Descriptor, to an output-directory.static String
execute(String title, ApiDescription apiDescription, Path inputDirPath, ApiDescription... externalApiDescriptions)
Generates AsciiDoc documentation for a CREST API Descriptor, to aString
.
-
-
-
Method Detail
-
execute
public static void execute(String title, ApiDescription apiDescription, Path inputDirPath, Path outputDirPath, ApiDescription... externalApiDescriptions)
Generates AsciiDoc documentation for a CREST API Descriptor, to an output-directory.- Parameters:
title
- API titleapiDescription
- API DescriptionexternalApiDescriptions
- External CREST API Descriptions, for resolvingReference
s, ornull
inputDirPath
- Input directory ornull
if not overriding ADOC filesoutputDirPath
- Root output directory
-
execute
public static String execute(String title, ApiDescription apiDescription, Path inputDirPath, ApiDescription... externalApiDescriptions)
Generates AsciiDoc documentation for a CREST API Descriptor, to aString
.- Parameters:
title
- API titleapiDescription
- API DescriptionexternalApiDescriptions
- External CREST API Descriptions, for resolvingReference
s, ornull
inputDirPath
- Input directory ornull
if not overriding ADOC files- Returns:
- Resulting AsciiDoc markup as a
String
-
-