devowl-wp
    Preparing search index...
    • Build and execute a specific REST query.

      Type Parameters

      • TRequest extends IRouteRequestInterface
      • TParams extends IRouteParamsInterface
      • TResponse extends IRouteResponseInterface

      Parameters

      • __namedParameters: {
            allowBatchRequest?:
                | boolean
                | Pick<
                    {
                        restNamespace: string;
                        restNonce?: string;
                        restPathObfuscateOffset?: string;
                        restQuery?: object;
                        restRecreateNonceEndpoint?: string;
                        restRoot: string;
                    } & {
                        onQueueItemFinished?: (state: boolean) => void;
                        signal?: AbortSignal;
                        waitForPromise?: Promise<void>;
                    },
                    "onQueueItemFinished"
                    | "waitForPromise",
                >;
            multipart?: boolean | MultiPartOptions;
            params?: TParams;
            replayReason?: ReplayReason;
            request?: TRequest;
            sendReferer?: boolean;
            sendRestNonce?: boolean;
            settings?: Partial<{ -readonly [P in keyof Request]: Request[P] }>;
        } & UrlBuilderArgs
        • OptionalallowBatchRequest?:
              | boolean
              | Pick<
                  {
                      restNamespace: string;
                      restNonce?: string;
                      restPathObfuscateOffset?: string;
                      restQuery?: object;
                      restRecreateNonceEndpoint?: string;
                      restRoot: string;
                  } & {
                      onQueueItemFinished?: (state: boolean) => void;
                      signal?: AbortSignal;
                      waitForPromise?: Promise<void>;
                  },
                  "onQueueItemFinished"
                  | "waitForPromise",
              >

          See batchRequest for more information.

        • Optionalmultipart?: boolean | MultiPartOptions
        • Optionalparams?: TParams
        • OptionalreplayReason?: ReplayReason
        • Optionalrequest?: TRequest
        • OptionalsendReferer?: boolean

          Send the current URL as _wp_http_referer as URL parameter (for GET and DELETE) or body payload (for non-GET requests).

        • OptionalsendRestNonce?: boolean
        • Optionalsettings?: Partial<{ -readonly [P in keyof Request]: Request[P] }>

          Settings for the window.fetch call.

      Returns Promise<TResponse>

      Result of REST API

      urlBuilder