2022-06-18 03:54:41 +00:00
|
|
|
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:
|
|
|
|
- |
|
2022-06-21 06:46:40 +00:00
|
|
|
GET https://gorest.co.in/public/v2/users HTTP/1.1
|
2022-06-18 03:54:41 +00:00
|
|
|
Host: gorest.co.in
|
|
|
|
Content-Type: application/json
|
|
|
|
Authorization: Bearer {{token}}
|
|
|
|
|
2022-06-21 06:46:40 +00:00
|
|
|
{"name":"Tenali Ramakrishna", "gender":"male", "email":"tenali.rdamakrishna@15ce.com", "status":"active"}
|
|
|
|
|
2022-06-18 03:54:41 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: status
|
|
|
|
status:
|
2022-06-21 06:46:40 +00:00
|
|
|
- 201
|
2022-06-18 03:54:41 +00:00
|
|
|
|
|
|
|
- type: word
|
2022-06-21 06:46:40 +00:00
|
|
|
part: body
|
2022-06-18 03:54:41 +00:00
|
|
|
words:
|
2022-06-21 06:46:40 +00:00
|
|
|
- '"name"'
|