@netresearch/node-magento-eqp
    Preparing search index...

    Interface Adapter

    interface Adapter {
        delete<T>(url: string, config?: AxiosRequestConfig<any>): Promise<T>;
        get<T>(url: string, config?: AxiosRequestConfig<any>): Promise<T>;
        post<T>(
            url: string,
            body: unknown,
            config?: AxiosRequestConfig<any>,
        ): Promise<T>;
        put<T>(
            url: string,
            body: unknown,
            config?: AxiosRequestConfig<any>,
        ): Promise<T>;
        setHeader(header: string, value: string): void;
    }

    Implemented by

    Index

    Methods

    • Type Parameters

      • T

      Parameters

      • url: string
      • Optionalconfig: AxiosRequestConfig<any>

      Returns Promise<T>

    • Type Parameters

      • T

      Parameters

      • url: string
      • Optionalconfig: AxiosRequestConfig<any>

      Returns Promise<T>

    post

    • post<T>(
          url: string,
          body: unknown,
          config?: AxiosRequestConfig<any>,
      ): Promise<T>

      Type Parameters

      • T

      Parameters

      • url: string
      • body: unknown
      • Optionalconfig: AxiosRequestConfig<any>

      Returns Promise<T>

    • Type Parameters

      • T

      Parameters

      • url: string
      • body: unknown
      • Optionalconfig: AxiosRequestConfig<any>

      Returns Promise<T>

    • Parameters

      • header: string
      • value: string

      Returns void