Package com.toro.annotation
Annotation Interface Documented
@Target({METHOD,TYPE,FIELD,CONSTRUCTOR,ANNOTATION_TYPE})
@Retention(RUNTIME)
public @interface Documented
An annotation implicitly added to Groovy classes, fields, or methods with Javadoc.
This annotation is used to wrap Javadoc in order to re-use them in implicitly-added Swagger annotations so as to reduce redundancy when documenting APIs.
-
Used on top of a class not already annotated with
, this serves as an alias for
invalid reference
ApiApiwherein the value ofvalue()will be plugged as.invalid reference
Api#description() -
Used on top of a class not annotated with
but with
invalid reference
ApiModel, this serves as an alias for the former wherein the value ofinvalid reference
XmlRootElementvalue()will be plugged as.invalid reference
ApiModel#description() -
Used on top of a method not annotated with
, this serves as an alias for
invalid reference
ApiOperationApiOperationwherein the value ofvalue()will be plugged as.invalid reference
ApiOperation#notes() -
Used on top of a method which has parameters not annotated with
but with
invalid reference
ApiParamPathVariable,PathParam,QueryParam,RequestParam, orRequestBody, each non--annotated parameter will be implicitly annotated with one and will have the parameter Javadoc as the value of their respectiveinvalid reference
ApiParam.invalid reference
ApiParam#value() -
Used on top of a method or field not already annotated with
but with
invalid reference
ApiModelProperty, this serves as an alias forinvalid reference
XmlElementApiModelPropertywherein the value ofvalue()will be plugged as.invalid reference
ApiModelProperty#value()
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
String value- Returns:
- a string describing the Swagger resource, model, operation, response, or parameter
- Default:
""
-