id: api-abstract-image-processing

info:
  name: Abstract Api Image Processing Test
  author: daffainfo
  severity: info
  description: Manage your images programmatically with this powerful API compress, convert, crop, resize, and more.
  reference:
    - https://www.abstractapi.com/api/image-processing-optimization-api
    - https://github.com/daffainfo/all-about-apikey/tree/main/abstract-image-processing
  metadata:
    max-request: 1
  tags: token-spray,abstractapi

self-contained: true

http:
  - raw:
      - |
        POST https://images.abstractapi.com/v1/url/ HTTP/1.1
        Host: images.abstractapi.com
        Content-Type: application/json
        Accept: application/json

        {"api_key": "{{token}}", "lossy": true, "url": "https://s3.amazonaws.com/static.abstractapi.com/test-images/dog.jpg"}

    matchers:
      - type: word
        part: body
        words:
          - '"original_size":'
          - '"original_height":'
          - '"original_width":'
        condition: and
# digest: 4a0a00473045022100acfecaaf9e796c9551c2d115750845c12b6c76d0a50b7a26c671c6c33bd2a4e402204dd94db322e7e3f266874df9a5e7936e1d31a34adde6fd74ba56da55c655f578:922c64590222798bb761d5b6d8e72950