id: api-netlify

info:
  name: Netlify API Test
  author: dwisiswant0
  severity: info
  reference:
    - https://docs.netlify.com/api/get-started/
  metadata:
    max-request: 1
  tags: token-spray,netlify

self-contained: true

http:
  - method: GET
    path:
      - "https://api.netlify.com/api/v1/sites"

    headers:
      Authorization: Bearer {{token}}
    matchers:
      - type: word
        part: body
        words:
          - '"id":'
          - '"premium":'
          - '"claimed":'
        condition: and
# digest: 4a0a00473045022100aca4a1d947f80089461f69108031f9aae07495bcc13c82f5d469f6677e2daa1502206627519002000aa5b70df8a3097b9982c403e187524f9349567ea4737571d55d:922c64590222798bb761d5b6d8e72950