• Create a chain for querying an API from a OpenAPI spec.

    Parameters

    • spec: string | Omit<Omit<Document<{}>, "paths" | "components">, "info" | "paths" | "components" | "servers" | "webhooks" | "jsonSchemaDialect"> & {} & Pick<PathsWebhooksComponents<{}>, "paths"> & Omit<Partial<PathsWebhooksComponents<{}>>, "paths"> | Omit<Omit<Document<{}>, "paths" | "components">, "info" | "paths" | "components" | "servers" | "webhooks" | "jsonSchemaDialect"> & {} & Pick<PathsWebhooksComponents<{}>, "webhooks"> & Omit<Partial<PathsWebhooksComponents<{}>>, "webhooks"> | Omit<Omit<Document<{}>, "paths" | "components">, "info" | "paths" | "components" | "servers" | "webhooks" | "jsonSchemaDialect"> & {} & Pick<PathsWebhooksComponents<{}>, "components"> & Omit<Partial<PathsWebhooksComponents<{}>>, "components">

      OpenAPISpec or url/file/text string corresponding to one.

    • options: OpenAPIChainOptions = {}

      Custom options passed into the chain

    Returns Promise<SequentialChain>

    OpenAPIChain

Generated using TypeDoc