I want to customize Section "title" in auto-section.adoc[] file generated by Spring Auto Rest Docs. Spring Auto Rest Docs resolves section title using @title Javadoc tag on the method(if present) or from the method name (as mentioned in docs), but i can't inlcude @title in the Javadoc tag of method as the controller class is from other JAR, also I don't want the default generated method name. So, how to customize Section title in Spring Auto Rest Docs.
E.g. In auto generated auto-section.adoc[]
I don't want
=== Resolved Method Name
I want
=== Something else
Any help? Thanks.
I achieved customizing section title in
auto-section.adocas below:1) I created custom section snippet that extends
SectionSnippet:2) And then the custom section builder that extends
SectionBuilder:3) And then used it like this:
And now I'm able to pass
Something elseas a section title that will be included in the auto generatedauto-section.adocfile.Thanks @florian-benz for help :)