Open
Description
I've been working on a Kotlin DSL for restDocs and have converted a number of samples to demonstrate it.
I would love to contribute the DSL into the spring-restdocs project. Would you be interested in that DSL? (I also wanted to contribute the base MockMVC DSL to spring test, but that is a different project)
Example DSL:
@Test
fun indexExample() {
this.mockMvc.performGet("/") {
expect { status { isOk } }
document(documentationHandler) {
"notes" link { description("The <<resources-notes,Notes resource>>") }
"tags" link { description("The <<resources-tags,Tags resource>>") }
response {
"Content-Type" header { description("The Content-Type of the payload, e.g. `application/hal+json`") }
"_links" subsection { description("<<resources-index-links,Links>> to other resources") }
}
}
}
}