ADK for TypeScript: API Reference
    Preparing search index...

    Interface BaseAPIHubClient

    Fetches the content of an API specification registered in API Hub.

    Implement this interface to give an APIHubToolset a different source of specs, such as a cache, a local file, or a test double.

    interface BaseAPIHubClient {
        getSpecContent(path: string): Promise<string>;
    }

    Implemented by

    • Returns the content of the spec that path resolves to.

      Parameters

      • path: string

        An API, API version or API spec resource name, or an API Hub console URL.

      Returns Promise<string>