2021-11-10 20:49:36 +00:00
|
|
|
id: api-accuweather
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: AccuWeather API Test
|
|
|
|
author: zzeitlin
|
|
|
|
severity: info
|
2021-11-11 05:26:56 +00:00
|
|
|
reference: https://developer.accuweather.com/apis
|
2021-11-10 20:49:36 +00:00
|
|
|
tags: token-spray,accuweather
|
|
|
|
|
2021-11-15 22:54:18 +00:00
|
|
|
self-contained: true
|
2021-11-10 20:49:36 +00:00
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "http://api.accuweather.com/locations/v1/search?language=en-US&apikey={{token}}&q=Athens,%20Greece"
|
|
|
|
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- '"Version"'
|
|
|
|
- '"LocalizedName"'
|
|
|
|
- '"DataSets"'
|
2021-11-11 05:26:56 +00:00
|
|
|
condition: and
|