id: api-holidayapi

info:
  name: Holiday API Test
  author: daffainfo
  severity: info
  description: Historical data regarding holidays
  reference:
    - https://holidayapi.com/docs
    - https://github.com/daffainfo/all-about-apikey/tree/main/holiday-api
  metadata:
    max-request: 1
  tags: token-spray,holidayapi

self-contained: true

http:
  - method: GET
    path:
      - "https://holidayapi.com/v1/holidays?pretty&key={{token}}&country=US&year=2020&language=EN"

    matchers:
      - type: word
        part: body
        words:
          - '"holidays":'
          - '"name":'
          - '"date":'
        condition: and
# digest: 490a0046304402202d921d18cccd0fecae09629519819c7f953874eeb206c81a0aa8dc9620e1205e02201777caf4166c6abb7446d6bd914afa7c8dd54b4d177be5cc74b127686e822268:922c64590222798bb761d5b6d8e72950