id: api-scanii

info:
  name: Scanii API Test
  author: daffainfo
  severity: info
  description: Simple REST API that can scan submitted documents/files for the presence of threats
  reference:
    - https://docs.scanii.com/v2.1/resources.html
    - https://github.com/daffainfo/all-about-apikey/tree/main/scanii
  metadata:
    max-request: 1
  tags: token-spray,scanii

self-contained: true

http:
  - raw:
      - |
        GET https://api.scanii.com/v2.1/ping HTTP/1.1
        Authorization: Basic {{base64(api + ':' + secret)}}
        Host: api.scanii.com

    matchers:
      - type: word
        part: body
        words:
          - '"key"'
          - '"message" : "pong"'
        condition: and
# digest: 4a0a0047304502201bd18f925f408605e7854d4bec99a2e21cd8a8399bf7da62e5fd328260359da5022100aa835484894f7de9b3357b6d22a5929c61bb67aef42ad91823ba50f62b1a5875:922c64590222798bb761d5b6d8e72950