Annotation Interface Tag


@Documented @Retention(RUNTIME) public @interface Tag
Swagger tag annotation.

Allows adding meta data to a single tag that is used by the Swagger Operation Object. It is not mandatory to have a Tag Object per tag used there.

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

Example:

// A response object thats a hex-encoded string @Rest( swagger=@Swagger{ tags={ @Tag( name="utility", description="Utility methods" ) } } )

See Also: