Annotation Type Body


Sends the annotated parameter as the request body. Valid only on @POST, @PUT, @PATCH, and @DELETE methods - using it on @GET, @HEAD, or @OPTIONS fails validation. A String value is sent as-is; any other object is JSON-serialized automatically. At most one parameter per method may be annotated @Body.