Package org.forgerock.api.markup
Class ApiDocGenerator
java.lang.Object
org.forgerock.api.markup.ApiDocGenerator
Generates static AsciiDoc documentation for CREST API Descriptors.
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
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
-