Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide usage example for build.gradle.kts #112

Closed
kubav182 opened this issue Aug 10, 2019 · 2 comments
Closed

Provide usage example for build.gradle.kts #112

kubav182 opened this issue Aug 10, 2019 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@kubav182
Copy link

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

@ozscheyge ozscheyge added enhancement New feature or request good first issue Good for newcomers labels Oct 11, 2019
@oleksandr-abasov
Copy link
Contributor

oleksandr-abasov commented Oct 26, 2019

@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

@ozscheyge
Copy link
Contributor

ozscheyge commented Oct 28, 2019

I added it to the README in 9138472

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants