id: api-abstract-public-holidays

info:
  name: Abstract Api Public Holidays Test
  author: daffainfo
  severity: info
  description: Data on national, regional, and religious holidays via API
  reference:
    - https://www.abstractapi.com/api/holidays-api
    - https://github.com/daffainfo/all-about-apikey/tree/main/abstract-public-holidays
  metadata:
    max-request: 1
  tags: token-spray,abstractapi

self-contained: true

http:
  - method: GET
    path:
      - "https://holidays.abstractapi.com/v1/?api_key={{token}}&country=GB&year=2021&month=1&day=25"

    matchers:
      - type: word
        part: body
        words:
          - '"name_local":'
          - '"location":'
          - '"date_year":'
        condition: and
# digest: 4a0a0047304502210082f4c5d92f7d4878230fc33d3fcd049aa73fb824840d5e650a43139e358f2a5402203109fa9021331e8e1cbf014b19c2cddf7eecb4fb949b8ca32a511db423ecd4b4:922c64590222798bb761d5b6d8e72950