Class ApiDocGenerator


  • public final class ApiDocGenerator
    extends Object
    Generates static AsciiDoc documentation for CREST API Descriptors.
    • 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 title
        apiDescription - API Description
        externalApiDescriptions - External CREST API Descriptions, for resolving References, or null
        inputDirPath - Input directory or null if not overriding ADOC files
        outputDirPath - 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 a String.
        Parameters:
        title - API title
        apiDescription - API Description
        externalApiDescriptions - External CREST API Descriptions, for resolving References, or null
        inputDirPath - Input directory or null if not overriding ADOC files
        Returns:
        Resulting AsciiDoc markup as a String