@Documented
@Target(value=PARAMETER)
@Retention(value=RUNTIME)
public @interface PartMap
Values of the map on which this annotation exists will be processed in one of three ways:
TypedOutput
the headers and
body will be used directly.String
the value will also be used directly with a text/plain
content type.Converter.toBody(Object)
.
@Multipart @POST("/upload") void upload(@Part("file") TypedFile file, @PartMap Map<String, String> params);
Copyright © 2014 Square, Inc.. All Rights Reserved.