Merge pull request #4627 from geeknik/patch-57

Create api-segment.yaml
patch-1
Prince Chaddha 2022-06-22 09:20:32 +05:30 committed by GitHub
commit 1f5eedf43e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 0 deletions

View File

@ -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