diff --git a/token-spray/api-segment.yaml b/token-spray/api-segment.yaml new file mode 100644 index 0000000000..5c95a6ed11 --- /dev/null +++ b/token-spray/api-segment.yaml @@ -0,0 +1,26 @@ +id: api-segment + +info: + name: Segment API Test + author: geeknik + severity: info + reference: + - https://reference.segmentapis.com/ + tags: token-spray,segment + +self-contained: true +requests: + - 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