Provide usage example for build.gradle.kts
kubav182 opened this issue · 2 comments
kubav182 commented
Can you please provide example how to configure openapi3 task in build.gradle.kts?
oleksandr-abasov commented
@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