31 lines
668 B
YAML
31 lines
668 B
YAML
|
id: api-gorest
|
||
|
|
||
|
info:
|
||
|
name: Gorest API Test
|
||
|
author: daffainfo
|
||
|
severity: info
|
||
|
reference:
|
||
|
- https://gorest.co.in/
|
||
|
- https://github.com/daffainfo/all-about-apikey/blob/main/Development/Gorest.md
|
||
|
tags: token-spray,gorest
|
||
|
|
||
|
self-contained: true
|
||
|
requests:
|
||
|
- raw:
|
||
|
- |
|
||
|
GET https://gorest.co.in/public/v2/users/5 HTTP/1.1
|
||
|
Host: gorest.co.in
|
||
|
Accept: application/json
|
||
|
Content-Type: application/json
|
||
|
Authorization: Bearer {{token}}
|
||
|
|
||
|
matchers-condition: and
|
||
|
matchers:
|
||
|
- type: status
|
||
|
status:
|
||
|
- 204
|
||
|
|
||
|
- type: word
|
||
|
part: header
|
||
|
words:
|
||
|
- 'Content-Length: 0'
|