Detectives

Return random users that are accepted food detectives with at least 1 review, but when there are not enough records - add to them also these without any reviews.

Parameters
  • includequery string

    Include associations (delimited with comma). Available associations: specializations

  • filterformData, object

    Form Data needed when filtering.

    • citystring

      User city.

    • exclude_citiesstring[]

      Cities to exclude.

  • pagequery integer

    Page offset to fetch.

  • per_pagequery integer

    Number of results to return per page.

GET/api/v1/users/detectives

{
  const res = await fetch(`${BASE_URL}/api/v1/users/detectives`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json'
    },
    body: JSON.stringify(data)});

  const data = await res.json();
}

RESPONSE


Top Detectives

Return all accepted food detectives sorted by published_reviews_count in descending order.

Parameters
  • includequery string

    Include associations (delimited with comma). Available associations: specializations

  • filterformData, object

    Form Data needed when filtering.

    • citystring

      User city.

    • exclude_citiesstring[]

      Cities to exclude.

  • pagequery integer

    Page offset to fetch.

  • per_pagequery integer

    Number of results to return per page.

GET/api/v1/users/detectives/top

{
  const res = await fetch(`${BASE_URL}/api/v1/users/detectives/top`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json'
    },
    body: JSON.stringify(data)});

  const data = await res.json();
}

RESPONSE