id: api-opsgenie

info:
  name: OpsGenie API Test
  author: 0xpugal
  severity: info
  description: Forex currency market data
  reference:
    - https://docs.opsgenie.com/docs/api-overview
  metadata:
    max-request: 1
  tags: token-spray,opsgenie

self-contained: true

http:
  - method: GET
    path:
      - "https://api.opsgenie.com/v2/alerts"

    headers:
      Authorization: GenieKey {{token}}
    matchers:
      - type: word
        part: body
        words:
          - '"data":'
          - '"paging":'
          - '"took":'
        condition: and
# digest: 4a0a004730450221008840d014a186b018cb04c8d446b21a29f36da35af50c53225c804ea46708d8b802200995e5539c4c64c414760ecc5ab215058e9c16fa35c2a6d66d5c75737bab331c:922c64590222798bb761d5b6d8e72950