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
  • #11010
Closed
Open
Issue created Dec 01, 2021 by Administrator@rootContributor

[REQ][csharp-netcore] Add Request Options as a parameter to the Wrapper API methods

Created by: RubberChickenParadise

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

In the Typescript-axios generated client, all the methods take a RequestOptions object to enable callers a bit more control over resulting request. This is useful in several scenarios where there may need to be additional headers added only one place in the code.

Describe the solution you'd like

There is already the Request Options object that is being instantiated in each method. Add the RequestOptions as a method parameter and add a guard if statement to initialize the RequestOptions if it is the default instead of always initializing RequestOptions as a new instance.

Describe alternatives you've considered

Custom mustache file.

Additional context

Adding this to the default generated files will bring the c# net core API more inline with other language client generators.

Assignee
Assign to
Time tracking