id: api-fontawesome

info:
  name: FontAwesome API Test
  author: dwisiswant0
  severity: info
  reference:
    - https://fontawesome.com/v6.0/docs/apis/graphql/get-started
  metadata:
    max-request: 1
  tags: token-spray,fontawesome

self-contained: true

http:
  - method: GET
    path:
      - "https://api.fontawesome.com/token"

    headers:
      Authorization: Bearer {{token}}

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        part: body
        words:
          - '"access_token":'
          - '"scopes":'
        condition: and
# digest: 490a0046304402204e8029231e79b73b3966a50b5369a0ac9921ccf2ed9f10432912cc757c74165c022053d1691f14dbb5dd0ccef9a3b4ab715690aaad1a1e868f4c30cb229225b6cdcb:922c64590222798bb761d5b6d8e72950