id: api-cooperhewitt

info:
  name: Cooper Hewitt API
  author: daffainfo
  severity: info
  description: Smithsonian Design Museum
  reference:
    - https://collection.cooperhewitt.org/api/methods/
    - https://github.com/daffainfo/all-about-apikey/tree/main/cooper-hewitt
  metadata:
    max-request: 1
  tags: token-spray,cooperhewitt

self-contained: true

http:
  - method: GET
    path:
      - "https://api.collection.cooperhewitt.org/rest/?method=api.spec.formats&access_token={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - '"stat":'
          - '"formats":'
          - '"default_format":'
        condition: and
# digest: 4a0a00473045022100c550b9a4b46a5987281805b5a24618c17d86ae43929602384f21654e75353b72022022826d62568051855661918af1447de20a6aa6e4649dae76a4e2e9d95d4ec797:922c64590222798bb761d5b6d8e72950