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: 4a0a00473045022059ba18b8d17fc3603d02f111b48fdc488776904846a5a670916ef5910158d0f30221008808cf1122a8d79312a459b7a53df6bb553bb4c9419cc2d5dea3ae9ef558b51e:922c64590222798bb761d5b6d8e72950
