id: api-thedogapi

info:
  name: TheDogApi API Test
  author: daffainfo
  severity: info
  description: Pictures of dogs from Tumblr
  reference:
    - https://docs.thedogapi.com/
    - https://github.com/daffainfo/all-about-apikey/tree/main/thedogapi
  metadata:
    max-request: 1
  tags: token-spray,thedogapi

self-contained: true

http:
  - method: GET
    path:
      - "https://api.thedogapi.com/v1/votes"

    headers:
      x-api-key: "{{token}}"
    matchers:
      - type: word
        part: body
        words:
          - 'id":'
          - 'image_id":'
          - 'sub_id":'
        condition: and
# digest: 4a0a00473045022100a4372673bbdb661a0fa6db6e33f3f3d6002c90137ef15b01ecfea041546c6f1d0220254ffca31c739f78030dce3272aa7aaad581ba7ec3aee5d42fe5fd86c1e9f9b1:922c64590222798bb761d5b6d8e72950