id: api-googlebooks

info:
  name: Google Books API Test
  author: daffainfo
  severity: info
  description: Google Books
  reference:
    - https://developers.google.com/books/docs/overview
    - https://github.com/daffainfo/all-about-apikey/tree/main/google-books
  metadata:
    max-request: 1
  tags: token-spray,google,books

self-contained: true

http:
  - method: GET
    path:
      - "https://www.googleapis.com/books/v1/volumes/zyTCAlFPjgYC?key={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - "kind"
          - "id"
          - "etag"
        condition: and
# digest: 4a0a0047304502203f23290e13f5edf619d97546d458ee5a8987aeb4b43425a42f82787904edb8ff02210093dd6f2102b1be7215004f91fd904959e87b7c5867d3d6fbe4fc698a5415fe9b:922c64590222798bb761d5b6d8e72950