id: api-segment

info:
  name: Segment API Test
  author: geeknik
  severity: info
  reference:
    - https://reference.segmentapis.com/
  metadata:
    max-request: 1
  tags: token-spray,segment

self-contained: true

http:
  - raw:
      - |
        GET https://platform.segmentapis.com/v1beta/workspaces/myworkspace HTTP/1.1
        Host: platform.segmentapis.com
        Authorization: Bearer {{token}}
        Content-Type: application/json

    matchers:
      - type: word
        part: body
        words:
          - '"name":'
          - '"id"'
        condition: and
# digest: 4b0a004830460221008ed607203b72b899a89c6cd39c80f79fd117170d93eed820abc7dd700e9716b3022100bb18d49da796c4fd56a72b95e5c5b888f283f1670bf5cacd0faea649d6dff6d7:922c64590222798bb761d5b6d8e72950