Class OpenAPIDslConnection<C extends BrowseContext>

    • Constructor Detail

      • OpenAPIDslConnection

        public OpenAPIDslConnection​(C context)
    • Method Detail

      • getObjectTypes

        public List<ObjectType> getObjectTypes()
        Returns a list of ObjectTypes by parsing a json config file part of the custom OpenAPI connector jar. Sets the ObjectTypeId to a customId constructed by combination of method and path fields with ":" as a delimiter. Does the lookup of method and path if an operationId is specified in the configuration.
        Overrides:
        getObjectTypes in class OpenAPIConnection<C extends BrowseContext>
        Returns:
        the ObjectType list
      • getOperation

        protected io.swagger.v3.oas.models.Operation getOperation​(String customObjectTypeId)
        Fetch the Operation based off of the path value and the selected BrowseContext.getCustomOperationType() .customObjectTypeId is a ":" delimited combination of HttpMethod and relative path from the OpenAPI spec.
        Overrides:
        getOperation in class OpenAPIConnection<C extends BrowseContext>
        Parameters:
        customObjectTypeId - HttpMethod:RelativePath
        Returns:
        the Operation
      • getSpec

        public String getSpec()
        Get the location of the target OpenAPI Specification from the json config file with key "spec"
        Overrides:
        getSpec in class OpenAPIConnection<C extends BrowseContext>
        Returns:
        the Spec