Annotation Interface Operation


@Retention(RUNTIME) public @interface Operation
The common details of an operation.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    A description of the operation.
    JSON references to previously declared errors (e.g., frapi:common#/errors/badRequest).
    Operation specific error definitions.
    The list of supported locales for the operation.
    Parameters on operation paths and/or endpoints.
    The stability state for the operation.
  • Element Details

    • locales

      String[] locales
      The list of supported locales for the operation.
      Default:
      {}
    • errors

      ApiError[] errors
      Operation specific error definitions. Use this when standard error descriptions are not specific enough.
      Default:
      {}
    • errorRefs

      String[] errorRefs
      JSON references to previously declared errors (e.g., frapi:common#/errors/badRequest).
      See Also:
      Default:
      {}
    • parameters

      Parameter[] parameters
      Parameters on operation paths and/or endpoints.
      Default:
      {}
    • stability

      Stability stability
      The stability state for the operation. Defaults to STABLE.
      Default:
      STABLE
    • description

      String description
      A description of the operation.
      Default:
      ""