public interface Callback extends Constructible, Extensible, Reference<Callback>, java.util.Map<java.lang.String,PathItem>
A map of possible out-of-band callbacks related to the parent operation. Each value in the map is a Path Item Object that describes a set of requests that may be initiated by the API provider and the expected responses. The key value used to identify the callback object is an expression, evaluated at runtime, that identifies a URL to use for the callback operation.
Modifier and Type | Method and Description |
---|---|
Callback |
addPathItem(java.lang.String name,
PathItem pathItem)
Adds the given PathItem to this Callback's list of PathItems using the string as its key.
|
addExtension, getExtensions, setExtensions
Callback addPathItem(java.lang.String name, PathItem pathItem)
name
- a runtime expression that can be evaluated in the context of a runtime HTTP request/responsepathItem
- a path to add to this Callback's list of PathItems