API communication class

Properties

Methods

Properties

i: Dispatch = ...

Singleton instance.

token?: string

Token used for authentication on the server side. Allows access to deleted revisions if the user has proper rights.

Methods

  • Returns a fully-formed HTTP URL from a given endpoint. This uses the wiki's set Dispatch endpoint and a given target (such as /v1/revisions) to get the full URL.

    Parameters

    • endpoint: string

      The endpoint to get

    Returns Promise<URL>