@Target(value={PARAMETER,METHOD})
@Retention(value=RUNTIME)
@Inherited
public @interface RequestBody
Modifier and Type | Optional Element and Description |
---|---|
Content[] |
content
The content of the request body.
|
java.lang.String |
description
A brief description of the request body.
|
java.lang.String |
name
The unique name to identify this request body.
|
java.lang.String |
ref
Reference value to a RequestBody object.
|
boolean |
required
Determines if the request body is required in the request.
|
public abstract java.lang.String description
This could contain examples of use. CommonMark syntax MAY be used for rich text representation.
public abstract Content[] content
public abstract boolean required
public abstract java.lang.String name
Components
. The name will
be used as the key to add this request body to the 'requestBodies' map for reuse.public abstract java.lang.String ref
This property provides a reference to an object defined elsewhere. This property and all other properties are mutually exclusive. If other properties are defined in addition to the ref property then the result is undefined.