For the time being, this is an experimentation of a Kotlin-based DSL for Spring-REST-Docs
If you're interested to understand how the DSL looks like, you can have a look at the examples.
- Be able to do everything we can do with the native Java DSL, but in a more Kotlin-esque way. This includes reusable descriptors, reusable snippets, relaxed snippets, attributes, preprocessors.
- Have an easier to discover, more intuitive API: almost no static imports necessary.
Once you know you must use
andDocument
, the API should be discoverable by using code-completion - Provide scopes that can be the targets for extension function. See this file for an example