public static class Swagger2MarkupResultHandler.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
Swagger2MarkupResultHandler |
build()
Builds Swagger2MarkupResultHandler which converts the Swagger response into Markup and writes into the given
outputDir . |
Swagger2MarkupResultHandler.Builder |
withExamples(java.lang.String examplesFolderPath)
Include examples into the Paths document
|
Swagger2MarkupResultHandler.Builder |
withMarkupLanguage(io.github.robwin.markup.builder.MarkupLanguage markupLanguage)
Specifies the markup language which should be used to generate the files
|
public Swagger2MarkupResultHandler build()
outputDir
.ResultHandler
that will produce the documentationMockMvc.perform(org.springframework.test.web.servlet.RequestBuilder)
,
ResultActions.andDo(org.springframework.test.web.servlet.ResultHandler)
public Swagger2MarkupResultHandler.Builder withMarkupLanguage(io.github.robwin.markup.builder.MarkupLanguage markupLanguage)
markupLanguage
- the markup language which is used to generate the filespublic Swagger2MarkupResultHandler.Builder withExamples(java.lang.String examplesFolderPath)
examplesFolderPath
- the path to the folder where the example documents reside