id: api-currencylayer

info:
  name: Currencylayer API Test
  author: daffainfo
  severity: info
  description: Exchange rates and currency conversion
  reference:
    - https://currencylayer.com/documentation
    - https://github.com/daffainfo/all-about-apikey/tree/main/currencylayer
  metadata:
    max-request: 1
  tags: token-spray,currencylayer

self-contained: true

http:
  - method: GET
    path:
      - "http://api.currencylayer.com/live?access_key={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - '"terms"'
          - '"source"'
          - '"quotes"'
        condition: and
# digest: 490a00463044022041425bf2b877f5d6c1fb090ebafe0567bae2e15cab21ee7fa6e64bb459621a2d022065c62297de6f0bdf03304d592dd5c478b2ba4ec1d269a6e96edc7743c3754232:922c64590222798bb761d5b6d8e72950