Annotation Type License


Swagger license annotation.

License information for the exposed API.

Used to populate the auto-generated Swagger documentation and UI for server-side @Rest-annotated classes.

Example:

@Swagger( license=@License( name="Apache 2.0", url="http://www.apache.org/licenses/LICENSE-2.0.html" ) )

See Also:
  • Element Details

    • name

      name field of the Swagger License Object.
      Notes:
      • The format is a plain-text string.
      • Supports SVL Variables (e.g. "$L{my.localized.variable}") for the swagger generator.
      Returns:
      The annotation value.
      Default:
      ""
    • url

      url field of the Swagger License Object.
      Notes:
      • The format is a plain-text string.
      • Supports SVL Variables (e.g. "$L{my.localized.variable}") for the swagger generator.
      Returns:
      The annotation value.
      Default:
      ""