id: api-googleautocomplete

info:
  name: Google Autocomplete API Test
  author: zzeitlin
  severity: info
  metadata:
    max-request: 1
  tags: token-spray,google,autocomplete

self-contained: true

http:
  - method: GET
    path:
      - "https://maps.googleapis.com/maps/api/place/autocomplete/json?input=Bingh&types=%28cities%29&key={{token}}"

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