From 9dd7292765d85a9164b099c96ad02649238bedb2 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Mon, 2 Sep 2024 13:27:35 +0800 Subject: [PATCH] multipart docs java (#1456) --- docs/howtos/Client Generation/12multipart.mdx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/howtos/Client Generation/12multipart.mdx b/docs/howtos/Client Generation/12multipart.mdx index 3b84c441b5..2b7127fce6 100644 --- a/docs/howtos/Client Generation/12multipart.mdx +++ b/docs/howtos/Client Generation/12multipart.mdx @@ -64,6 +64,14 @@ def upload( ```java +// Model class +@Immutable +public final class MultipartRequest { + public MultipartRequest(String id, Address address, ProfileImageFileDetails profileImage, List pictures); +} + +// Client API +public void upload(MultipartRequest body); ``` @@ -132,6 +140,14 @@ def upload( ```java +// Model class +@Immutable +public final class MultipartRequest { + public MultipartRequest(String id, Address address, FileDetails profileImage, List
previousAddresses, List pictures); +} + +// Client API +public void upload(MultipartRequest body); ```