id: api-exchangerateapi

info:
  name: ExchangeRate-API API Test
  author: daffainfo
  severity: info
  description: Free currency conversion
  reference:
    - https://www.exchangerate-api.com/docs/overview
    - https://github.com/daffainfo/all-about-apikey/tree/main/exchangerate-api
  metadata:
    max-request: 1
  tags: token-spray,exchangerateapi

self-contained: true

http:
  - method: GET
    path:
      - "https://v6.exchangerate-api.com/v6/{{token}}/latest/USD"

    matchers:
      - type: word
        part: body
        words:
          - '"time_next_update_utc"'
          - '"base_code"'
          - '"conversion_rates"'
        condition: and
# digest: 4a0a00473045022039cf0b6b6be0db5d4a95e81c22c634bebd3e4a70671fbac2d03cd01d85a56cc0022100f7a78a0c757f218d00994f2ec37928966308f80108f9c099fb7d41bb2bfa03e1:922c64590222798bb761d5b6d8e72950