@Target(value={METHOD,TYPE,FIELD,CONSTRUCTOR,ANNOTATION_TYPE}) @Retention(value=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.
Api
, this serves as an alias for
Api
wherein the value of value()
will be plugged as Api.description()
.
ApiModel
but with XmlRootElement
,
this serves as an alias for the former wherein the value of value()
will be plugged as
ApiModel.description()
.
ApiOperation
, this serves as an alias for
ApiOperation
wherein the value of value()
will be plugged as
ApiOperation.notes()
.
ApiParam
but with
PathVariable
, PathParam
, QueryParam
, RequestParam
, or RequestBody
,
each non-ApiParam
-annotated parameter will be implicitly annotated with one and will have the
parameter Javadoc as the value of their respective ApiParam.value()
.
ApiModelProperty
but
with XmlElement
, this serves as an alias for ApiModelProperty
wherein the value of
value()
will be plugged as ApiModelProperty.value()
.
public abstract String value
Copyright © 2023. All rights reserved.