protected getData()

in src/lib/services/AsyncApi.ts [209:224]


  protected getData(
    query: Query,
  ): Observable<any> {

    const path = createPathFromQuery(query)

    /** construct the final URL */
    const url = BuildUrl(`${this.baseUrl}:${this.port}/${path}`)

    return fromPromise(
      this.axiosInstance({ ...query, url })
    ).pipe(
      map((res: any) => res),
      catchError((err, caught) => throwError(err))
    )
  }