id: api-launchdarkly

info:
  name: LaunchDarkly REST API
  author: Luqmaan Hadia
  severity: info
  reference:
    - https://apidocs.launchdarkly.com/
  metadata:
    max-request: 1
  tags: token-spray,launchdarkly

self-contained: true

http:
  - raw:
      - |
        GET https://app.launchdarkly.com/api/v2/members HTTP/1.1
        Host: app.launchdarkly.com
        Authorization: {{token}}

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - '"totalCount":'
          - '"items":'
        condition: and
# digest: 4a0a00473045022100835d63d74e50218955d3b1fc0411d283dcfff6d2aadd71cb1219fcbcbb23989802200fa9e06226984b2e6e60b82fde0eabb94fe2256e04e194532e00e3e8b0bf524e:922c64590222798bb761d5b6d8e72950