id: api-web3storage

info:
  name: Web3 Storage API Test
  author: daffainfo
  severity: info
  description: File Sharing and Storage for Free with 1TB Space
  reference:
    - https://docs.web3.storage/
    - https://github.com/daffainfo/all-about-apikey/tree/main/web3-storage
  metadata:
    max-request: 1
  tags: token-spray,web3storage,intrusive

self-contained: true

http:
  - raw:
      - |
        GET https://api.web3.storage/user/uploads HTTP/1.1
        Host: api.web3.storage
        Authorization: Bearer {{token}}

    matchers:
      - type: word
        part: body
        words:
          - '"created"'
          - '"cid"'
        condition: and
# digest: 4b0a004830460221008e411aaa70f7c0b3c38c2501b1bd2b5d0d193a24822609b594b201f673163ee9022100ae6e06195ba5aff72e3a1992e0e39a2600dc7756c0f14bb0e21a5105b8a6b879:922c64590222798bb761d5b6d8e72950