Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #4832
Closed
Open
Issue created Dec 18, 2019 by Administrator@rootContributor

[REQ] Allow JavaJaxRsSpec Generator to generate asynchronous APIs

Created by: prodanov

Is your feature request related to a problem? Please describe.

I'm using the model generation and API generation of the JaxRsSpec generator and I like it a lot as it gives me a lot of freedom in implementing the server. Quite Specific I'm using it with Quarkus and in order to have asynchronous routes in quarkus you API has to return CompletionStage. CompletionStage is a class from the JDK. A simplified example could look like:

`import java.util.concurrent.CompletionStage;

interface FruitApi { CompletionStage getFruit(); }`

It would be ok to have an "async" flag in the config that will generate those types of APIs. Maybe with some other options like in the spring generator.

Assignee
Assign to
Time tracking