id: api-appveyor

info:
  name: AppVeyor API Test
  author: dwisiswant0
  severity: info
  reference:
    - https://www.appveyor.com/docs/api/
  metadata:
    max-request: 1
  tags: token-spray,appveyor

self-contained: true

http:
  - method: GET
    path:
      - "https://ci.appveyor.com/api/roles"

    headers:
      Content-Type: application/json
      Authorization: Bearer {{token}}
    matchers:
      - type: word
        part: body
        words:
          - '"roleId":'
          - '"created":'
        condition: and
# digest: 4a0a0047304502200e3966bb09849807f4c104177a3279ed99a94a2f904bd3e5469759670c192d0c022100db91c7eeb855d1c2978d7d2bf98a75c030a214002fbc8f2fc4a0f37085920814:922c64590222798bb761d5b6d8e72950