Package io.swagger.annotations
Annotation Type ApiParam
- 
- 
Optional Element SummaryOptional Elements Modifier and Type Optional Element Description StringaccessAllows for filtering a parameter from the API documentation.StringallowableValuesLimits the acceptable values for this parameter.booleanallowEmptyValueAdds the ability to set a format as emptybooleanallowMultipleSpecifies whether the parameter can accept multiple values by having multiple occurrences.StringcollectionFormatadds ability to override collectionFormat with `array` typesStringdefaultValueDescribes the default value for the parameter.Stringexamplea single example for non-body type parametersExampleexamplesExamples for the parameter.StringformatAdds the ability to provide a custom formatbooleanhiddenHides the parameter from the list of parameters.StringnameThe parameter name.booleanreadOnlyadds ability to be designated as read only.booleanrequiredSpecifies if the parameter is required or not.StringtypeAdds the ability to override the detected typeStringvalueA brief description of the parameter.
 
- 
- 
- 
Element Detail- 
nameString name The parameter name.The name of the parameter will be derived from the field/method/parameter name, however you can override it. Path parameters must always be named as the path section they represent. - Default:
- ""
 
 
- 
 - 
- 
valueString value A brief description of the parameter.- Default:
- ""
 
 
- 
 - 
- 
defaultValueString defaultValue Describes the default value for the parameter.If the parameter is annotated with JAX-RS's @DefaultValue, that value would be used, but can be overridden by setting this property.- Default:
- ""
 
 
- 
 - 
- 
allowableValuesString allowableValues Limits the acceptable values for this parameter.There are three ways to describe the allowable values: - To set a list of values, provide a comma-separated list.
 For example: first, second, third.
- To set a range of values, start the value with "range", and surrounding by square
 brackets include the minimum and maximum values, or round brackets for exclusive minimum and maximum values.
 For example: range[1, 5],range(1, 5),range[1, 5).
- To set a minimum/maximum value, use the same format for range but use "infinity"
 or "-infinity" as the second value. For example, range[1, infinity]means the minimum allowable value of this parameter is 1.
 - Default:
- ""
 
- To set a list of values, provide a comma-separated list.
 For example: 
 
- 
 - 
- 
accessString access Allows for filtering a parameter from the API documentation.See io.swagger.core.filter.SwaggerSpecFilter for further details. - Default:
- ""
 
 
- 
 - 
- 
hiddenboolean hidden Hides the parameter from the list of parameters.- Default:
- false
 
 
- 
 - 
- 
exampleString example a single example for non-body type parameters- Returns:
- Since:
- 1.5.4
 - Default:
- ""
 
 
- 
 - 
- 
examplesExample examples Examples for the parameter. Applies only to BodyParameters- Returns:
- Since:
- 1.5.4
 - Default:
- @io.swagger.annotations.Example({@io.swagger.annotations.ExampleProperty(mediaType="", value="")})
 
 
- 
 - 
- 
typeString type Adds the ability to override the detected type- Returns:
- Since:
- 1.5.11
 - Default:
- ""
 
 
- 
 - 
- 
formatString format Adds the ability to provide a custom format- Returns:
- Since:
- 1.5.11
 - Default:
- ""
 
 
- 
 - 
- 
collectionFormatString collectionFormat adds ability to override collectionFormat with `array` types- Since:
- 1.5.11
 - Default:
- ""
 
 
- 
 
-