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

Can I use Gretty to generate code with OpenAPI? #451

Open
falk-stefan opened this issue Jan 8, 2021 · 0 comments
Open

Can I use Gretty to generate code with OpenAPI? #451

falk-stefan opened this issue Jan 8, 2021 · 0 comments

Comments

@falk-stefan
Copy link

The title says it all.. I am trying to generate a client using OpenAPI but I have no idea how to get a server up and running (see).

For OpenAPI to work, I need the server at https://localhost:{port}:

openApiGenerate {
    generatorName = 'typescript-angular'
    inputSpec = 'http://localhost:8080/v3/api-docs'
    outputDir = '$buildDir/angular-client'
    configOptions = [
            npmName: 'meditation-rest-client',
            npmVersion: ''
    ]
}

compileJava.dependsOn tasks.openApiGenerate

Can I use Gretty for this somehow?

@falk-stefan falk-stefan changed the title Can I use Gretty somehow to generate code with OpenAPI? Can I use Gretty to generate code with OpenAPI? Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant