Annotation Type ReadOperation


@Target(METHOD) @Retention(RUNTIME) @Documented public @interface ReadOperation
Identifies a method on an @Endpoint as being a read operation.
Since:
2.0.0
Author:
Andy Wilkinson
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The media type of the result of the operation.
    Class<? extends Producible>
    The media types of the result of the operation.
  • Element Details

    • produces

      String[] produces
      The media type of the result of the operation.
      Returns:
      the media type
      Default:
      {}
    • producesFrom

      Class<? extends Producible> producesFrom
      The media types of the result of the operation.
      Returns:
      the media types
      Default:
      org.springframework.boot.actuate.endpoint.Producible.class