Skip to content

Add support for ClientMultipartForm #1426

@andrejpetras

Description

@andrejpetras

Tell us the extension to which you'd like to add the feature.

Client

What kind of feature would you like to add?

Add support for org.jboss.resteasy.reactive.client.api.ClientMultipartForm for clients.

Quarkus documentation: https://quarkus.io/guides/rest-client#programmatically-creating-the-multipart-form

To generate this source code

public interface MultipartService {
  @POST
  @Path("/multipart")
  @Consumes(MediaType.MULTIPART_FORM_DATA)
  @Produces(MediaType.APPLICATION_JSON)
  Map<String, String> multipart(ClientMultipartForm dataParts);
}

Proposal(s):

Extend the template and configuration properties to add the support for ClientMultipartForm

For example, extend the api.qute template like this:

        {#if op.hasFormParams}
        {#if is-resteasy-reactive}
        {#if is-resteasy-reactive-client-form}
        org.jboss.resteasy.reactive.client.api.ClientMultipartForm multipartForm{#if op.hasPathParams},{/if}
        {#else}
        @jakarta.ws.rs.BeanParam {op.operationIdCamelCase}MultipartForm multipartForm{#if op.hasPathParams},{/if}
        {/if}
        {#else}

Alternative(s):

No response

Additional info:

No response

Community Notes

  • Please vote by adding a 👍 reaction to the feature to help us prioritize.
  • If you want to work on this feature, please leave a comment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clientThis item is related to the client extension

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions