id: api-europeana

info:
  name: Europeana API Test
  author: daffainfo
  severity: info
  description: European Museum and Galleries content
  reference:
    - https://pro.europeana.eu/page/search
    - https://github.com/daffainfo/all-about-apikey/tree/main/europeana
  metadata:
    max-request: 1
  tags: token-spray,europeana

self-contained: true

http:
  - method: GET
    path:
      - "https://api.europeana.eu/record/v2/search.json?wskey={{token}}&query=*&rows=0&profile=facets"

    matchers:
      - type: word
        part: body
        words:
          - 'success'
          - 'apikey'
          - 'action'
        condition: and
# digest: 4a0a00473045022009e4bd5e6e7a9e5d26027790dca517b88f58b2f59ddc6fccc5d1baf0d7db2fe7022100af764fddd540d87242e5a59df19a141ad5337d49747e6179fe7d30e91c851e8c:922c64590222798bb761d5b6d8e72950