Annotation Interface ResourceRefDoc


@Target(FIELD) @Retention(RUNTIME) public @interface ResourceRefDoc
Describes an embedded resource in a HAL response.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Embedded resource name.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Optional description for describing the embedded resource.
    Reference/URL to JSON schema.
    Reference to domain object model which should be used to detect the corresponding JSON schema.
  • Element Details

    • value

      String value
      Embedded resource name.
    • jsonSchema

      String jsonSchema
      Reference/URL to JSON schema.
      Default:
      ""
    • model

      Class<?> model
      Reference to domain object model which should be used to detect the corresponding JSON schema.
      Default:
      void.class
    • description

      String description
      Optional description for describing the embedded resource.
      Default:
      ""