Skip to main content
  • Submits a request to any endpoint by path.

    For endpoints without a generated method, such as those of the host manager, and for callers that already hold a request object. The call behaves exactly like the generated methods: it fails over, it is job-wrapped when the endpoint is in job_endpoints, it returns a promise and invokes the optional callback, and in the standalone build it blocks and returns the response itself when no callback is given.

    Type Parameters

    • T = Record<string, any>

    Parameters

    • endpoint: string

      The endpoint path, such as /show/table

    • request: Record<string, any>

      The request object, matching the endpoint’s schema

    • Optionalcallback: GPUdbCallback

      Optional callback function

    Returns Promise<T>

    Promise resolving to the endpoint’s response