Annotation Interface Body


@Documented @Retention(RUNTIME) @Target(PARAMETER) @Bindable @Inherited public @interface Body
An annotation that can be applied to method argument to indicate that the method argument is bound from the HTTP body.
Since:
1.0
  • Element Details

    • value

      @AliasFor(annotation=io.micronaut.core.bind.annotation.Bindable.class, member="value") String value
      Returns:
      A Key or qualifier within the body. For example a reference to a nested JSON attribute
      Default:
      ""
    • defaultValue

      @AliasFor(annotation=io.micronaut.core.bind.annotation.Bindable.class, member="defaultValue") String defaultValue
      Returns:
      The default value
      See Also:
      • Bindable.defaultValue()
      Default:
      ""