Skip to content

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

@falk-stefan

Description

@falk-stefan

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions