@Documented @Target(value=PARAMETER) @Retention(value=RUNTIME) public @interface Part
The parameter type on which this annotation exists will be processed in one of two ways:
RequestBody the value will be used
directly with its content type.
Values may be null which will omit them from the request body.
@Multipart
@POST("/")
Call<ResponseBody> example(
@Part("description") String description,
@Part(value = "image", encoding = "8-bit") RequestBody image);
Part parameters may not be null.
Copyright © 2016 Square, Inc.. All rights reserved.