AngularTS
    Preparing search index...

    Interface RestRequest

    Normalized request object passed from RestService to a RestBackend.

    Backends receive expanded URLs and already-separated request options, so they can focus on transport, persistence, or cache policy.

    interface RestRequest {
        collectionUrl?: string;
        data?: unknown;
        id?: unknown;
        method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
        options?: Record<string, unknown>;
        params?: Record<string, unknown>;
        url: string;
    }
    Index

    Properties

    collectionUrl?: string

    Collection URL used for broad cache invalidation.

    data?: unknown

    Request body for write operations.

    id?: unknown

    Resource identifier for entity operations.

    method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS"

    Resource operation method.

    options?: Record<string, unknown>

    Backend-specific request options.

    params?: Record<string, unknown>

    URI template and query parameters.

    url: string

    Expanded request URL.