public interface PathItem extends Constructible, Extensible<PathItem>, Reference<PathItem>
Describes the operations available on a single path. A Path Item MAY be empty, due to security constraints. In that case the path itself is still exposed to the documentation viewer but you will not know which operations and parameters are available.
Modifier and Type | Interface and Description |
---|---|
static class |
PathItem.HttpMethod
All of the possible types of HTTP operations for this path
|
Modifier and Type | Method and Description |
---|---|
PathItem |
addParameter(Parameter parameter)
Adds the given parameter to this PathItem's list of parameters.
|
PathItem |
addServer(Server server)
Adds the given server to this PathItem's list of servers.
|
default PathItem |
DELETE(Operation delete)
Sets this PathItem's delete property to the given operation.
|
default PathItem |
description(java.lang.String description)
Sets this PathItem's description property to the given string.
|
default PathItem |
GET(Operation get)
Sets this PathItem's get property to the given operation.
|
Operation |
getDELETE()
Returns the delete property from a PathItem instance.
|
java.lang.String |
getDescription()
Returns the description property from a PathItem instance.
|
Operation |
getGET()
Returns the get property from a PathItem instance.
|
Operation |
getHEAD()
Returns the head property from a PathItem instance.
|
java.util.Map<PathItem.HttpMethod,Operation> |
getOperations()
Returns a map with all the operations for this path where the keys are
PathItem.HttpMethod items |
Operation |
getOPTIONS()
Returns the options property from a PathItem instance.
|
java.util.List<Parameter> |
getParameters()
Returns the parameters property from this PathItem instance.
|
Operation |
getPATCH()
Returns the patch property from a PathItem instance.
|
Operation |
getPOST()
Returns the post property from a PathItem instance.
|
Operation |
getPUT()
Returns the put property from a PathItem instance.
|
java.util.List<Server> |
getServers()
Returns the servers property from a PathItem instance.
|
java.lang.String |
getSummary()
Returns the summary property from a PathItem instance.
|
Operation |
getTRACE()
Returns the trace property from a PathItem instance.
|
default PathItem |
HEAD(Operation head)
Sets this PathItem's head property to the given operation.
|
default PathItem |
OPTIONS(Operation options)
Sets this PathItem's options property to the given operation.
|
default PathItem |
parameters(java.util.List<Parameter> parameters)
Sets this PathItem's parameters property to the given list.
|
default PathItem |
PATCH(Operation patch)
Sets this PathItem's patch property to the given operation.
|
default PathItem |
POST(Operation post)
Sets this PathItem's post property to the given operation.
|
default PathItem |
PUT(Operation put)
Sets this PathItem's put property to the given operation.
|
void |
removeParameter(Parameter parameter)
Removes the given parameter to this PathItem's list of parameters.
|
void |
removeServer(Server server)
Removes the given server to this PathItem's list of servers.
|
default PathItem |
servers(java.util.List<Server> servers)
Sets this PathItem's servers property to the given list.
|
void |
setDELETE(Operation delete)
Sets this PathItem's delete property to the given operation.
|
void |
setDescription(java.lang.String description)
Sets this PathItem's description property to the given string.
|
void |
setGET(Operation get)
Sets this PathItem's get property to the given operation.
|
void |
setHEAD(Operation head)
Sets this PathItem's head property to the given operation.
|
void |
setOperation(PathItem.HttpMethod httpMethod,
Operation operation)
Sets an operation for a given http method.
|
void |
setOPTIONS(Operation options)
Sets this PathItem's options property to the given operation.
|
void |
setParameters(java.util.List<Parameter> parameters)
Sets this PathItem's parameters property to the given list.
|
void |
setPATCH(Operation patch)
Sets this PathItem's patch property to the given operation.
|
void |
setPOST(Operation post)
Sets this PathItem's post property to the given operation.
|
void |
setPUT(Operation put)
Sets this PathItem's put property to the given operation.
|
void |
setServers(java.util.List<Server> servers)
Sets this PathItem's servers property to the given list.
|
void |
setSummary(java.lang.String summary)
Sets this PathItem's summary property to the given string.
|
void |
setTRACE(Operation trace)
Sets this PathItem's trace property to the given operation.
|
default PathItem |
summary(java.lang.String summary)
Sets this PathItem's summary property to the given string.
|
default PathItem |
TRACE(Operation trace)
Sets this PathItem's trace property to the given operation.
|
addExtension, extensions, getExtensions, removeExtension, setExtensions
java.lang.String getSummary()
void setSummary(java.lang.String summary)
summary
- short summary of what the path item representsdefault PathItem summary(java.lang.String summary)
summary
- short summary of what the path item representsjava.lang.String getDescription()
void setDescription(java.lang.String description)
description
- detailed description of what the path item representsdefault PathItem description(java.lang.String description)
description
- detailed description of what the path item representsOperation getGET()
void setGET(Operation get)
get
- definition of a GET operationdefault PathItem GET(Operation get)
get
- definition of a GET operationOperation getPUT()
void setPUT(Operation put)
put
- definition of a PUT operationdefault PathItem PUT(Operation put)
put
- definition of a PUT operationOperation getPOST()
void setPOST(Operation post)
post
- definition of a PUT operationdefault PathItem POST(Operation post)
post
- definition of a PUT operationOperation getDELETE()
void setDELETE(Operation delete)
delete
- definition of a DELETE operationdefault PathItem DELETE(Operation delete)
delete
- definition of a DELETE operationOperation getOPTIONS()
void setOPTIONS(Operation options)
options
- definition of an OPTIONS operationdefault PathItem OPTIONS(Operation options)
options
- definition of an OPTIONS operationOperation getHEAD()
void setHEAD(Operation head)
head
- definition of a HEAD operationdefault PathItem HEAD(Operation head)
head
- definition of a HEAD operationOperation getPATCH()
void setPATCH(Operation patch)
patch
- definition of a PATCH operationdefault PathItem PATCH(Operation patch)
patch
- definition of a PATCH operationOperation getTRACE()
void setTRACE(Operation trace)
trace
- definition of a TRACE operationdefault PathItem TRACE(Operation trace)
trace
- definition of a TRACE operationjava.util.Map<PathItem.HttpMethod,Operation> getOperations()
PathItem.HttpMethod
itemsvoid setOperation(PathItem.HttpMethod httpMethod, Operation operation)
httpMethod
- the http methodoperation
- the definition of an operation for the given http method.java.util.List<Server> getServers()
void setServers(java.util.List<Server> servers)
servers
- a list of the servers to service operations in this path itemdefault PathItem servers(java.util.List<Server> servers)
servers
- a list of the servers to service operations in this path itemPathItem addServer(Server server)
server
- a server to service operations in this path itemvoid removeServer(Server server)
server
- a server to service operations in this path itemjava.util.List<Parameter> getParameters()
void setParameters(java.util.List<Parameter> parameters)
parameters
- a list of parameters that are applicable to all the operations described under this pathdefault PathItem parameters(java.util.List<Parameter> parameters)
parameters
- a list of parameters that are applicable to all the operations described under this pathPathItem addParameter(Parameter parameter)
parameter
- a parameter that is applicable to all the operations described under this pathvoid removeParameter(Parameter parameter)
parameter
- a parameter that is applicable to all the operations described under this path