id: api-optimizely

info:
  name: Optimizely API Test
  author: dwisiswant0
  severity: info
  reference:
    - https://library.optimizely.com/docs/api/app/v2/index.html
  metadata:
    max-request: 1
  tags: token-spray,optimizely

self-contained: true

http:
  - method: GET
    path:
      - "https://api.optimizely.com/v2/projects"

    headers:
      Authorization: Bearer {{token}}

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

      - type: word
        part: body
        words:
          - '"account_id":'
          - '"confidence_threshold":'
        condition: and
# digest: 4a0a00473045022100841e5342f021cb43537f4f9e5981795b181d6d495b5d012981896f268644c6c20220086b25bf0f94bffb57fd3be7b7cf0a05b6c8e3fbade0f7b196901fdc7b1da328:922c64590222798bb761d5b6d8e72950