id: api-mapbox

info:
  name: Mapbox API Test
  author: zzeitlin
  severity: info
  reference:
    - https://docs.mapbox.com/api/search/geocoding/
  metadata:
    max-request: 1
  tags: token-spray,mapbox

self-contained: true

http:
  - method: GET
    path:
      - "https://api.mapbox.com/geocoding/v5/mapbox.places/Los%20Angeles.json?access_token={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - 'type'
          - 'query'
          - 'features'
        condition: and
# digest: 4a0a00473045022068adfc8696ee3040d4b23a6eedcea2d9d1c34ec80edf4178f2bd5925928aa5cb022100c8abe8d4997b199b1b4d60d2f51de55ba3c6ee169186d3581efa8711b57da8f8:922c64590222798bb761d5b6d8e72950