id: api-googletextsearchplaces

info:
  name: Google Places Text Search API Test
  author: zzeitlin
  severity: info
  metadata:
    max-request: 1
  tags: token-spray,google,search,places,text

self-contained: true

http:
  - method: GET
    path:
      - "https://maps.googleapis.com/maps/api/place/textsearch/json?query=restaurants+in+Sydney&key={{token}}"

    matchers:
      - type: word
        part: body
        negative: true
        words:
          - 'error_message'

# digest: 4b0a00483046022100fcdcecfa840ee6c038fa9023b43c4c6ae883867346e16d306a08505493cd6eb2022100fbaa781ffc33f78458131ca9830282bdc87ac858004d7b09d9b2c1a9cfcf4c7b:922c64590222798bb761d5b6d8e72950
