id: api-adoptapet

info:
  name: AdoptAPet API Test
  author: daffainfo
  severity: info
  description: Resource to help get pets adopted
  reference:
    - https://www.adoptapet.com/public/apis/pet_list.html
    - https://github.com/daffainfo/all-about-apikey/tree/main/adoptapet
  metadata:
    max-request: 1
  tags: token-spray,adoptapet

self-contained: true

http:
  - method: GET
    path:
      - "https://api.adoptapet.com/search/pets_at_shelter?key={{token}}&v=2&output=json&shelter_id=79570&start_number=1&end_number=500"

    matchers:
      - type: word
        part: body
        words:
          - 'returned_pets":'
          - 'total_pets":'
        condition: and
# digest: 4a0a00473045022100f4828666a683b838cb0b13a9a2002bc379eea63f626bbb1219ef44d7054e93a502207f575bc8002de0d5ab09d3bc8fedc5271887955bb3d91fa452aa74a6108e8734:922c64590222798bb761d5b6d8e72950