ePages-de/restdocs-api-spec

Provide usage example for build.gradle.kts

kubav182 opened this issue · 2 comments

Can you please provide example how to configure openapi3 task in build.gradle.kts?

@kubav182 , was struggling with the same, but figured this way:

configure<com.epages.restdocs.apispec.gradle.OpenApi3Extension> {
    setServer("http://$apiHost:$apiPort")
    title = "Your title"
    description = "Your Descr"
    version = "0.1.0"
    format = "json"
    tagDescriptionsPropertiesFile = "src/test/resources/tags.yaml"
}

hope it helps

I added it to the README in 9138472

So I'd consider this resolved, thank you for the snippet @axkb