2021-10-28 16:38:36 +00:00
|
|
|
id: api-thecatapi
|
2021-10-28 13:17:37 +00:00
|
|
|
|
|
|
|
info:
|
|
|
|
name: TheCatApi API Test
|
|
|
|
author: daffainfo
|
|
|
|
severity: info
|
2022-07-25 06:05:11 +00:00
|
|
|
description: Pictures of cats from Tumblr
|
2021-11-06 04:27:25 +00:00
|
|
|
reference:
|
|
|
|
- https://docs.thecatapi.com/
|
2022-07-25 06:05:11 +00:00
|
|
|
- https://github.com/daffainfo/all-about-apikey/tree/main/thecatapi
|
2021-10-28 16:38:36 +00:00
|
|
|
tags: token-spray,thecatapi
|
2021-10-28 15:24:27 +00:00
|
|
|
|
2021-10-28 16:38:36 +00:00
|
|
|
self-contained: true
|
2021-10-28 13:17:37 +00:00
|
|
|
requests:
|
2021-10-28 16:38:36 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "https://api.thecatapi.com/v1/votes"
|
|
|
|
headers:
|
|
|
|
x-api-key: "{{token}}"
|
2021-10-28 15:24:27 +00:00
|
|
|
|
2021-10-28 13:17:37 +00:00
|
|
|
matchers:
|
2021-11-01 12:22:18 +00:00
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- '"country_code":'
|
|
|
|
- '"created_at":'
|
2021-11-10 09:53:35 +00:00
|
|
|
condition: and
|