@Target(value={PARAMETER,METHOD,FIELD}) @Retention(value=RUNTIME) @Inherited public @interface ApiParam
Modifier and Type | Optional Element and Description |
---|---|
String |
access
Allows for filtering a parameter from the API documentation.
|
String |
allowableValues
Limits the acceptable values for this parameter.
|
boolean |
allowMultiple
Specifies whether the parameter can accept multiple comma-separated values.
|
String |
defaultValue
Describes the default value for the parameter.
|
String |
name
The parameter name.
|
boolean |
required
Specifies if the parameter is required or not.
|
String |
value
A brief description of the parameter.
|
public abstract String name
public abstract String value
public abstract String defaultValue
@DefaultValue
, that value would
be used, but can be overridden by setting this property.public abstract String allowableValues
[first, second, third]
.range[1, 5]
.range[1, infinity]
means the
minimum allowable value of this parameter is 1.public abstract boolean required
public abstract String access
com.wordnik.swagger.core.filter.SwaggerSpecFilter
public abstract boolean allowMultiple
Copyright © 2014. All Rights Reserved.