id: api-wordnik

info:
  name: Wordnik API Test
  author: daffainfo
  severity: info
  description: Dictionary Data
  reference:
    - https://developer.wordnik.com/docs
    - https://github.com/daffainfo/all-about-apikey/tree/main/wordnik
  metadata:
    max-request: 1
  tags: token-spray,wordnik

self-contained: true

http:
  - method: GET
    path:
      - "https://api.wordnik.com/v4/word.json/hedgehog/topExample?useCanonical=false&api_key={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - '"provider"'
          - '"year"'
          - '"rating"'
        condition: and
# digest: 4b0a00483046022100ee314abacb93db81ea6d95b28bd872f4ef10d1e0deb1719b2fd0ce42d62055fa022100cfb3ea954c1b195ba4616f89015a038b96f3fb498c38404a01214c8aa6e36a82:922c64590222798bb761d5b6d8e72950