Class TemplateFormats

java.lang.Object
org.springframework.restdocs.templates.TemplateFormats

public abstract class TemplateFormats extends Object
An enumeration of the built-in formats for which templates are provided.
Since:
1.1.0
Author:
Andy Wilkinson
  • Method Details

    • asciidoctor

      public static TemplateFormat asciidoctor()
      Returns the Asciidoctor template format with the ID asciidoctor and the file extension adoc.
      Returns:
      the template format
    • markdown

      public static TemplateFormat markdown()
      Returns the Markdown template format with the ID markdown and the file extension md.
      Returns:
      the template format