id: api-prexview

info:
  name: PrexView API Test
  author: daffainfo
  severity: info
  description: Data from XML or JSON to PDF, HTML or Image
  reference:
    - https://prexview.com/docs/
    - https://github.com/daffainfo/all-about-apikey/tree/main/prexview
  metadata:
    max-request: 1
  tags: token-spray,prexview

self-contained: true

http:
  - raw:
      - |
        POST https://api.prexview.com/v1/transform HTTP/1.1
        Host: api.prexview.com
        Authorization: {{token}}

    matchers:
      - type: word
        part: body
        words:
          - '"output is a required argument"'
          - '"status":400'
        condition: and
# digest: 4a0a00473045022040b5309bb4e7097916774039f449c1689178be38cf0d4d121131a17151aa8bd3022100e2a19ef472e44a8092f0258d34ce58a284e0b3ebcc586346bc55b880bde55462:922c64590222798bb761d5b6d8e72950