Annotation Interface PathItem
Describes a set of operations available on a single path.
- Since:
- 4.0
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionThe name of the Path Item object, used as the map key when the path item is used underComponents.pathItems()
orOpenAPIDefinition.webhooks()
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionThe description of the path item.List of extensions to be added to thePathItem
model corresponding to the containing annotation.The operations available under this Path Item.A list of parameters which apply to all operations under this path item.Reference value to a PathItem object.Server[]
A list of servers to be used for this Path Item, overriding those defined for the whole API.The summary of the path item.
-
Element Details
-
name
String nameThe name of the Path Item object, used as the map key when the path item is used underComponents.pathItems()
orOpenAPIDefinition.webhooks()
- Returns:
- the path item name
-
-
-
ref
String refReference value to a PathItem object.This property provides a reference to an object defined elsewhere.
Unlike
ref
on most MP OpenAPI annotations, this property is not mutually exclusive with other properties.- Returns:
- reference to a path item object definition
- Default:
- ""
-
summary
String summaryThe summary of the path item.- Returns:
- the summary
- Default:
- ""
-
description
String descriptionThe description of the path item.- Returns:
- the description
- Default:
- ""
-
operations
PathItemOperation[] operationsThe operations available under this Path Item.The
method
MUST be defined for each operation.- Returns:
- the list of operations
- Default:
- {}
-
servers
Server[] serversA list of servers to be used for this Path Item, overriding those defined for the whole API.- Returns:
- the list of servers
- Default:
- {}
-
parameters
Parameter[] parametersA list of parameters which apply to all operations under this path item.- Returns:
- the list of parameters
- Default:
- {}
-
extensions
Extension[] extensionsList of extensions to be added to thePathItem
model corresponding to the containing annotation.- Returns:
- the list of extensions
- Default:
- {}
-