REST method parameters annotated as Body will be used to build HTTP request body.
How exactly that happens depends on BodyTypeTag applied on a method. By default, JsonBody is assumed
which means that body parameters will be combined into a single JSON object sent as body.
Body parameters are allowed only in REST methods annotated as POST, PATCH, PUT or DELETE.
Body annotation is assumed by default for parameters of all methods which may include HTTP body.
This means that there's usually no reason to apply this annotation explicitly. It may only be useful when
wanting to customize JSON/form field name.
REST method parameters annotated as Body will be used to build HTTP request body. How exactly that happens depends on BodyTypeTag applied on a method. By default, JsonBody is assumed which means that body parameters will be combined into a single JSON object sent as body. Body parameters are allowed only in REST methods annotated as POST, PATCH, PUT or DELETE.
Body annotation is assumed by default for parameters of all methods which may include HTTP body. This means that there's usually no reason to apply this annotation explicitly. It may only be useful when wanting to customize JSON/form field name.