protected async search()

in src/base-commands/api.ts [81:89]


  protected async search(q: string, pageInfo?: PageInfo) {
    const mainEndpoint = `${this.profile!.mediaApiHost}images`

    const paging = pageInfo === undefined ? '' : `&offset=${pageInfo.page * pageInfo.size}&length=${pageInfo.size}`

    const endpoint = `${mainEndpoint}?q=${q}${paging}`
    const url = new URL(endpoint)
    return this.http!.get(url).then(_ => _.json())
  }