2021-12-06 14:51:41 +00:00
|
|
|
id: api-holidayapi
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Holiday API Test
|
|
|
|
author: daffainfo
|
|
|
|
severity: info
|
2022-07-25 06:05:11 +00:00
|
|
|
description: Historical data regarding holidays
|
2021-12-06 14:51:41 +00:00
|
|
|
reference:
|
|
|
|
- https://holidayapi.com/docs
|
2022-07-25 06:05:11 +00:00
|
|
|
- https://github.com/daffainfo/all-about-apikey/tree/main/holiday-api
|
2021-12-06 14:51:41 +00:00
|
|
|
tags: token-spray,holidayapi
|
|
|
|
|
|
|
|
self-contained: true
|
|
|
|
requests:
|
|
|
|
- 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
|