Annotation Type Example
Allows a call to include an example URL and sample inputs and outputs in the
generated documentation.
- Author:
- Tim Boudreau
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe name of the field on the class returned byinputType()to find an object which can be rendered as JSON sample input in the documentation of this call.Class<?>The class to look for the value ofinputField()on, to instantiate and convert to JSON an example of input to this method.The name of the field on the class returned byoutputType()to find an object which can be rendered as JSON sample output in the documentation of this call.Class<?>The class to look for the value ofoutputField()on, to instantiate and convert to JSON an example of output of this method.Example usage - typically a sample URL.
-
Element Details
-
value
String valueExample usage - typically a sample URL.- Returns:
- Default:
- ""
-
inputType
Class<?> inputTypeThe class to look for the value ofinputField()on, to instantiate and convert to JSON an example of input to this method. If a string, will be rendered in the help in pre tags. The field must be static but need not be public.- Returns:
- A field name
- Default:
- java.lang.Object.class
-
inputField
String inputFieldThe name of the field on the class returned byinputType()to find an object which can be rendered as JSON sample input in the documentation of this call.- Returns:
- A field name
- Default:
- "EXAMPLE"
-
outputType
Class<?> outputTypeThe class to look for the value ofoutputField()on, to instantiate and convert to JSON an example of output of this method. If a string, will be rendered in the help in pre tags.- Returns:
- A field name
- Default:
- java.lang.Object.class
-
outputField
String outputFieldThe name of the field on the class returned byoutputType()to find an object which can be rendered as JSON sample output in the documentation of this call. The field must be static but need not be public.- Returns:
- A field name
- Default:
- "EXAMPLE"
-