id: api-bingmaps

info:
  name: Bing Maps API Test
  author: zzeitlin
  severity: info
  reference:
    - https://docs.microsoft.com/en-us/bingmaps/rest-services/locations/find-a-location-by-address
  metadata:
    max-request: 1
  tags: token-spray,bing,maps,bingmaps

self-contained: true

http:
  - method: GET
    path:
      - "https://dev.virtualearth.net/REST/v1/Locations?CountryRegion=US&adminDistrict=WA&locality=Somewhere&postalCode=98001&addressLine=100%20Main%20St.&key={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - 'ValidCredentials'
# digest: 4a0a00473045022015c586f26ac201b5bd6e37a465db1e4359cdcd94c7584e9d0e0f3996171fee0f022100cf7adab5faa4e417e58eae5a2f6219592fb2e053759fabce33d6dbf33fe3474f:922c64590222798bb761d5b6d8e72950