id: api-calendarific

info:
  name: Calendarific API Test
  author: daffainfo
  severity: info
  description: Worldwide Holidays
  reference:
    - https://calendarific.com/api-documentation
    - https://github.com/daffainfo/all-about-apikey/tree/main/calendarific
  metadata:
    max-request: 1
  tags: token-spray,calendarific

self-contained: true

http:
  - method: GET
    path:
      - "https://calendarific.com/api/v2/holidays?api_key={{token}}&country=US&year=2021"

    matchers:
      - type: word
        part: body
        words:
          - '"holidays"'
          - '"name"'
          - '"description"'
        condition: and
# digest: 4b0a00483046022100e977f9aa5c830b7284ccc5563819a68db3808010969f24e6d1ff82df864644bd022100bff4c345230fb7409b2b8b32e8d9a10453bae168cd2f8a2df39dbbc5a442e0d3:922c64590222798bb761d5b6d8e72950