public class OpenAPIBrowser extends BaseBrowser
Constructor and Description |
---|
OpenAPIBrowser(OpenAPIConnection<? extends BrowseContext> connection) |
Modifier and Type | Method and Description |
---|---|
OpenAPIConnection<? extends BrowseContext> |
getConnection()
Returns the base connection that was either provided or created when this instance was created.
|
ObjectDefinitions |
getObjectDefinitions(String objectTypeId,
Collection<ObjectDefinitionRole> roles)
Generates the Input / Output Object Definition based off of the Path (objectTypeId) and the
selected
BrowseContext.getCustomOperationType() . |
ObjectTypes |
getObjectTypes()
Creates an
ObjectTypes with a list of ObjectType which will contain all the Paths
that contain the selected BrowseContext.getCustomOperationType()
If the spec provides an optional "operationId" then that will be used as the label, otherwise the path is used
as both ID and Label. |
getContext
public OpenAPIBrowser(OpenAPIConnection<? extends BrowseContext> connection)
public ObjectTypes getObjectTypes()
ObjectTypes
with a list of ObjectType
which will contain all the Paths
that contain the selected BrowseContext.getCustomOperationType()
If the spec provides an optional "operationId" then that will be used as the label, otherwise the path is used
as both ID and Label.public ObjectDefinitions getObjectDefinitions(String objectTypeId, Collection<ObjectDefinitionRole> roles)
BrowseContext.getCustomOperationType()
. This will also include OpenAPIRequestCookie
and BrowseField
for operation parametersobjectTypeId
- the selected ObjectType's IDroles
- Roles for Operationpublic OpenAPIConnection<? extends BrowseContext> getConnection()
BaseBrowser
getConnection
in class BaseBrowser