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
  • #14832
Closed
Open
Issue created Feb 28, 2023 by Jorge Rodríguez Martín@jorgerodContributor

[Java][Resttemplate] Normalize the RestTemplate ApiClient

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

Checking all Java clients, the only one that defines the ApiClient and XXXApi with the @Component annotation is RestTemplate.

With this change, now for RestTemplate (as it is done for the rest of the Java clients) we will have to define one bean as ApliClient and another one as XXXClient.

Describe the solution you'd like

Remove @Component from ApiClient.mustache and api.mustache

  • ApiClient.mustache https://github.com/OpenAPITools/openapi-generator/blob/a4b5b850670ea8b5df193501f9e10e8f308ac51e/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/ApiClient.mustache#L84

  • api.mustache https://github.com/OpenAPITools/openapi-generator/blob/a4b5b850670ea8b5df193501f9e10e8f308ac51e/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/api.mustache#L30

Assignee
Assign to
Time tracking