Skip to content

[REQ] [JAVA] [SPRING] Add a way to pass the content type as a method parameter #24106

Description

@claudiusnuss

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

I use Java and the OpenApi generator to generate classes, that use the SpringBoot resttemplate or restClient to send requests through defined REST-endpoints. These requests can have different bodies and with that different content-types. I can only set the content-type of the request through the definition of the endpoint.

Describe the solution you'd like

I would like an option, that adds a content-type method parameter. With that I can manually set the content-type of the request.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions