Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ApiService

Api service

Axios 를 이용하여 서버와 통신을 하는 서비스입니다

apiService.get("api/codes/AS001").then(result => {
console.log(result);
})

Hierarchy

  • ApiService

Implements

Index

Constructors

  • Creates an instance of api service.

    Returns ApiService

Methods

  • delete(url: string, params?: any, config?: AxiosRequestConfig<any>): Promise<any>
  • Deletes api service

    Parameters

    • url: string
    • Optional params: any
    • Optional config: AxiosRequestConfig<any>

    Returns Promise<any>

    delete

  • get(url: string, params?: any, config?: AxiosRequestConfig<any>): Promise<any>
  • Gets api service

    Parameters

    • url: string
    • Optional params: any
    • Optional config: AxiosRequestConfig<any>

    Returns Promise<any>

    get

  • patch(url: string, data?: any, config?: AxiosRequestConfig<any>): Promise<any>
  • Patchs api service

    Parameters

    • url: string
    • Optional data: any
    • Optional config: AxiosRequestConfig<any>

    Returns Promise<any>

    patch

  • post(url: string, data?: any, config?: AxiosRequestConfig<any>): Promise<any>
  • Posts api service

    Parameters

    • url: string
    • Optional data: any
    • Optional config: AxiosRequestConfig<any>

    Returns Promise<any>

    post

  • put(url: string, data?: any, config?: AxiosRequestConfig<any>): Promise<any>
  • Puts api service

    Parameters

    • url: string
    • Optional data: any
    • Optional config: AxiosRequestConfig<any>

    Returns Promise<any>

    put

  • Gets instance

    Returns ApiService

    instance

Generated using TypeDoc