MAIDR Documentation - v3.39.0
    Preparing search index...

    Class ApiAbstract

    Abstract utility class for making HTTP API requests with standardized error handling.

    Index

    Methods

    Methods

    Staticpost

    • post<T>(
          url: string,
          body: BodyInit,
          additionalHeaders?: Record<string, string>,
      ): Promise<ApiResponse<T>>

      Makes a POST request to the specified URL.

      Type Parameters

      • T

      Parameters

      • url: string

        The endpoint URL to send the request to

      • body: BodyInit

        The request body to send

      • OptionaladditionalHeaders: Record<string, string>

        Optional headers to merge with default headers

      Returns Promise<ApiResponse<T>>

      A promise resolving to the API response with typed data