Annotation Type RequestBody
-
@Target({METHOD,PARAMETER,ANNOTATION_TYPE}) @Retention(RUNTIME) @Inherited public @interface RequestBody
The annotation may be used on a method parameter to define it as the Request Body of the operation, and/or to define additional properties for such request body.- See Also:
- Request Body (OpenAPI specification),
Parameter
,Content
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Content[]
content
The content of the request body.String
description
A brief description of the request body.Extension[]
extensions
The list of optional extensionsString
ref
A reference to a RequestBody defined in components RequestBodies.boolean
required
Determines if the request body is required in the request.boolean
useParameterTypeSchema
Set to true to resolve the request body schema from parameter type
-
-
-
Element Detail
-
description
String description
A brief description of the request body.- Returns:
- description of the request body
- Default:
- ""
-
-
-
content
Content[] content
The content of the request body.- Returns:
- array of content
- Default:
- {}
-
-
-
extensions
Extension[] extensions
The list of optional extensions- Returns:
- an optional array of extensions
- Default:
- {}
-
-
-
ref
String ref
A reference to a RequestBody defined in components RequestBodies.- Returns:
- the reference
- Since:
- 2.0.3
- Default:
- ""
-
-