id: api-googlenearbysearch

info:
  name: Google Nearby Search API Test
  author: zzeitlin
  severity: info
  metadata:
    max-request: 1
  tags: token-spray,google,search,nearby

self-contained: true

http:
  - method: GET
    path:
      - "https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=100&types=food&name=harbour&key={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - 'error_message'
        negative: true
# digest: 490a0046304402202df8cfa2b4eecbf5a3993acb1cdddcbe7e8a74d5c1d860f3708466158ecf1edc0220497d98433eb711df07d73623e0bc4e336ce79f406337a9366a6892aa26b7ac25:922c64590222798bb761d5b6d8e72950