-
@Target(METHOD) @Retention(SOURCE) @Repeatable(ApiParameters.class) public @interface ApiParameter
Defines a custom parameter for a REST method.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.StringnameThe name of the parameter.ApiParameter.TypetypeDefine the type such as "path", "query" or "header".
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description ApiAllowedValues[]allowedValuesDefine allowed value that should be provided by the client.booleandeprecatedIf true, the parameter will be marked as deprecated.java.lang.StringdeprecatedDescriptionAdditional description that will be shown if the parameter is deprecated.java.lang.StringdescriptionDescription of the parameter.java.lang.ClassentityClassDefine the class of the parameter.booleanoptionalIf true, the parameter will be marked as optional, else as mandatory.
-
-
-
-
type
ApiParameter.Type type
Define the type such as "path", "query" or "header".- Returns:
- the type
-
-
-
allowedValues
ApiAllowedValues[] allowedValues
Define allowed value that should be provided by the client. If missing, the possible value will be generated. In case of an enum, all enum values will be shown, otherwise it will be something like {String}.- Returns:
- the allowed value
- Default:
- {}
-
-