Class PathItem
The PathItem Object describes the operations available on a single path. A Path Item may be empty, due to ACL constraints. The path itself is still exposed to the documentation viewer but they will not know which operations and parameters are available.
OpenAPI Specification:
The PathItem Object is composed of the following fields:
- summary (string) - An optional, string summary, intended to apply to all operations in this path
- description (string) - An optional, string description, intended to apply to all operations in this path
- get (- Operation) - A definition of a GET operation on this path
- put (- Operation) - A definition of a PUT operation on this path
- post (- Operation) - A definition of a POST operation on this path
- delete (- Operation) - A definition of a DELETE operation on this path
- options (- Operation) - A definition of an OPTIONS operation on this path
- head (- Operation) - A definition of a HEAD operation on this path
- patch (- Operation) - A definition of a PATCH operation on this path
- trace (- Operation) - A definition of a TRACE operation on this path
- servers (array of- Server) - An alternative server array to service all operations in this path
- parameters (array of- Parameter) - A list of parameters that are applicable for all the operations described under this path
Example:
   
   
See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncopy()Creates a copy of this object.<T> TGeneric property getter.Returns the DELETE operation.Returns the description.getGet()Returns the GET operation.getHead()Returns the HEAD operation.Returns the OPTIONS operation.Returns the parameters list.getPatch()Returns the PATCH operation.getPost()Returns the POST operation.getPut()Returns the PUT operation.Returns the servers list.Returns the summary.getTrace()Returns the TRACE operation.keySet()Returns all the keys on this element.Generic property setter.Sets the DELETE operation.setDescription(String value) Sets the description.Sets the GET operation.Sets the HEAD operation.setOptions(Operation value) Sets the OPTIONS operation.setParameters(List<Parameter> value) Sets the parameters list.Sets the PATCH operation.Sets the POST operation.Sets the PUT operation.setServers(List<Server> value) Sets the servers list.setSummary(String value) Sets the summary.Sets the TRACE operation.strict()Sets strict mode on this bean.Sets strict mode on this bean.
- 
Constructor Details- 
PathItempublic PathItem()Default constructor.
- 
PathItemCopy constructor.- Parameters:
- copyFrom- The object to copy.
 
 
- 
- 
Method Details- 
getSummaryReturns the summary.- Returns:
- The summary.
 
- 
setSummarySets the summary.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
getDescriptionReturns the description.- Returns:
- The description.
 
- 
setDescriptionSets the description.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
getGetReturns the GET operation.- Returns:
- The GET operation.
 
- 
setGetSets the GET operation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
getPutReturns the PUT operation.- Returns:
- The PUT operation.
 
- 
setPutSets the PUT operation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
getPostReturns the POST operation.- Returns:
- The POST operation.
 
- 
setPostSets the POST operation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
getDeleteReturns the DELETE operation.- Returns:
- The DELETE operation.
 
- 
setDeleteSets the DELETE operation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
getOptionsReturns the OPTIONS operation.- Returns:
- The OPTIONS operation.
 
- 
setOptionsSets the OPTIONS operation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
getHeadReturns the HEAD operation.- Returns:
- The HEAD operation.
 
- 
setHeadSets the HEAD operation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
getPatchReturns the PATCH operation.- Returns:
- The PATCH operation.
 
- 
setPatchSets the PATCH operation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
getTraceReturns the TRACE operation.- Returns:
- The TRACE operation.
 
- 
setTraceSets the TRACE operation.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
getServersReturns the servers list.- Returns:
- The servers list.
 
- 
setServersSets the servers list.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
getParametersReturns the parameters list.- Returns:
- The parameters list.
 
- 
setParametersSets the parameters list.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
copyCreates a copy of this object.- Returns:
- A copy of this object.
 
- 
getDescription copied from class:OpenApiElementGeneric property getter.Can be used to retrieve non-standard Swagger fields such as "$ref" .- Overrides:
- getin class- OpenApiElement
- Type Parameters:
- T- The datatype to cast the value to.
- Parameters:
- property- The property name to retrieve.
- type- The datatype to cast the value to.
- Returns:
- The property value, or null if the property does not exist or is not set.
 
- 
setDescription copied from class:OpenApiElementGeneric property setter.Can be used to set non-standard Swagger fields such as "$ref" .- Overrides:
- setin class- OpenApiElement
- Parameters:
- property- The property name to set. Must not be- null .
- value- The new value for the property.
- Returns:
- This object
 
- 
keySetDescription copied from class:OpenApiElementReturns all the keys on this element.- Overrides:
- keySetin class- OpenApiElement
- Returns:
- All the keys on this element.
   
 Nevernull .
 
- 
strictDescription copied from class:OpenApiElementSets strict mode on this bean.- Overrides:
- strictin class- OpenApiElement
- Returns:
- This object
 
- 
strictDescription copied from class:OpenApiElementSets strict mode on this bean.- Overrides:
- strictin class- OpenApiElement
- Parameters:
- value- The new value for this property.
 Non-boolean values will be converted to boolean using- Boolean..- valueOf (value.toString())
 Can be- null (interpreted as- false ).
- Returns:
- This object
 
 
-