public class Oas30PathItem extends OasPathItem implements IServerParent
| Modifier and Type | Field and Description |
|---|---|
String |
description |
List<Server> |
servers |
String |
summary |
Oas30Operation |
trace |
$ref, delete, get, head, options, parameters, patch, post, put_extensions_attributes, _extraProperties, _modelId, _ownerDocument, _parent, _validationProblems| Constructor and Description |
|---|
Oas30PathItem(String path)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addServer(Oas30Server server)
Adds a server.
|
void |
addServer(Server server)
Adds a server.
|
OasOperation |
createOperation(String method)
Creates an OAS operation object.
|
OasParameter |
createParameter()
Creates a child parameter.
|
Server |
createServer()
Creates a server.
|
Server |
getServer(String url)
Gets a server by URL.
|
List<Server> |
getServers()
Gets the servers.
|
void |
setOperation(OasOperation operation)
Sets the given operation on this path item.
|
accept, addParameter, getParameter, getParameters, getParametersIn, getPath, renameaddExtension, clearExtensions, createExtension, getExtension, getExtensions, isExtensible, removeExtensionaddExtraProperty, addValidationProblem, clearAttributes, clearValidationProblems, getAttribute, getAttributeNames, getExtraProperty, getExtraPropertyNames, getValidationProblemCodes, getValidationProblems, getValidationProblemsFor, hasExtraProperties, modelId, ownerDocument, parent, removeExtraProperty, setAttributepublic String summary
public String description
public Oas30Operation trace
public Oas30PathItem(String path)
path - public OasOperation createOperation(String method)
OasPathItemcreateOperation in class OasPathItemOasPathItem.createOperation(java.lang.String)public OasParameter createParameter()
OasPathItemcreateParameter in interface IOasParameterParentcreateParameter in class OasPathItemOasPathItem.createParameter()public Server createServer()
IServerParentcreateServer in interface IServerParentIServerParent.createServer()public void addServer(Oas30Server server)
server - public List<Server> getServers()
getServers in interface IServerParentpublic void setOperation(OasOperation operation)
OasPathItemsetOperation in class OasPathItemOasPathItem.setOperation(io.apicurio.datamodels.openapi.models.OasOperation)public void addServer(Server server)
IServerParentaddServer in interface IServerParentIServerParent.addServer(io.apicurio.datamodels.core.models.common.Server)public Server getServer(String url)
IServerParentgetServer in interface IServerParentIServerParent.getServer(java.lang.String)Copyright © 2019 Red Hat. All rights reserved.