Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • HttpClient

Index

Constructors

constructor

Methods

delete

  • delete(slug: string, data: any, options?: { query?: Record<string, string> } & AxiosRequestConfig<any>): Promise<AxiosResponse<any, any>>
  • Parameters

    • slug: string

      The slug to delete.

    • data: any

      Body data.

    • Optional options: { query?: Record<string, string> } & AxiosRequestConfig<any>

      Options.

    Returns Promise<AxiosResponse<any, any>>

    Returns a promise with the response.

get

  • get(slug: string, options?: { query?: Record<string, string> } & AxiosRequestConfig<any>): Promise<AxiosResponse<any, any>>
  • Parameters

    • slug: string

      The slug to get.

    • Optional options: { query?: Record<string, string> } & AxiosRequestConfig<any>

      Options.

    Returns Promise<AxiosResponse<any, any>>

    Returns a promise with the response.

getURL

  • getURL(slug: string, query?: Record<string, string>): string

post

  • post(slug: string, data: any, config?: { query?: Record<string, string> } & AxiosRequestConfig<any>): Promise<AxiosResponse<any, any>>
  • Parameters

    • slug: string

      The slug to post.

    • data: any

      Body data.

    • Optional config: { query?: Record<string, string> } & AxiosRequestConfig<any>

      Config.

    Returns Promise<AxiosResponse<any, any>>

    Returns a promise with the response.

put

  • put(slug: string, data: any, config?: { query?: Record<string, string> } & AxiosRequestConfig<any>): Promise<AxiosResponse<any, any>>
  • Parameters

    • slug: string

      The slug to put.

    • data: any

      Body data.

    • Optional config: { query?: Record<string, string> } & AxiosRequestConfig<any>

      Config.

    Returns Promise<AxiosResponse<any, any>>

    Returns a promise with the response.

Generated using TypeDoc