@shadmanZero/tenantos-api
    Preparing search index...

    Interface RequestConfig

    Configuration for individual API requests

    This interface defines the structure for making HTTP requests to the TenantOS API. It's used internally by the client but can be useful for advanced use cases.

    interface RequestConfig {
        data?: unknown;
        headers?: Readonly<Record<string, string>>;
        method: HttpMethod;
        params?: Readonly<Record<string, string | number | boolean>>;
        url: string;
    }
    Index

    Properties

    data?: unknown

    Request body data (for POST/PUT requests)

    headers?: Readonly<Record<string, string>>

    Optional headers specific to this request

    method: HttpMethod

    HTTP method for the request

    params?: Readonly<Record<string, string | number | boolean>>

    Query parameters to append to the URL

    url: string

    API endpoint URL (relative to base URL)