id: api-festivo

info:
  name: Festivo API Test
  author: daffainfo
  severity: info
  description: Fastest and most advanced public holiday and observance service on the market
  reference:
    - https://docs.getfestivo.com/docs/products/public-holidays-api/intro/
    - https://github.com/daffainfo/all-about-apikey/tree/main/festivo-public-holidays
  metadata:
    max-request: 1
  tags: token-spray,festivo

self-contained: true

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

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