Add 4 token-spray templates

patch-1
daffainfo 2021-11-11 08:11:01 +07:00
parent 33fccd20b3
commit fc4084be37
4 changed files with 111 additions and 0 deletions

View File

@ -0,0 +1,27 @@
id: api-bible
info:
name: API.Bible API Test
author: daffainfo
severity: info
reference:
- https://docs.api.bible
- https://github.com/daffainfo/all-about-apikey/blob/main/Books/API%20Bible.md
tags: token-spray,bible
self-contained: true
requests:
- method: GET
path:
- "https://api.scripture.api.bible/v1/bibles/a6aee10bb058511c-02/verses/JHN.3.16?fums-version=3"
headers:
api-key: "{{token}}"
matchers:
- type: word
words:
- "orgId"
- "bookId"
- "bibleId"
part: body
condition: and

View File

@ -0,0 +1,30 @@
id: api-petfinder
info:
name: Petfinder API Test
author: daffainfo
severity: info
reference:
- https://www.petfinder.com/developers/v2/docs/
- https://github.com/daffainfo/all-about-apikey/blob/main/Animals/Petfinder.md
tags: token-spray,petfinder
self-contained: true
requests:
- raw:
- |
POST /v2/oauth2/token HTTP/1.1
Host: api.petfinder.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 81
grant_type=client_credentials&client_id={{ID}}&client_secret={{SECRET}}
matchers:
- type: word
part: body
words:
- '"token_type"'
- '"expires_in"'
- '"access_token"'
condition: and

View File

@ -0,0 +1,29 @@
id: api-stytch
info:
name: Stytch API Test
author: daffainfo
severity: info
reference:
- https://stytch.com/docs
- https://github.com/daffainfo/all-about-apikey/blob/main/Authentication/Stytch.md
tags: token-spray,stytch
self-contained: true
requests:
- raw:
- |
POST /v1/users HTTP/1.1
Authorization: Basic {{base64(ID + ':' + SECRET)}}
Host: test.stytch.com
Content-Type: application/json
Content-Length: 28
{"email": "test@stytch.com"}
matchers:
- type: word
part: body
words:
- '"error_type":"unauthorized_credentials"'
negative: true

View File

@ -0,0 +1,25 @@
id: api-googlebooks
info:
name: Google Books API Test
author: daffainfo
severity: info
reference:
- https://developers.google.com/books/docs/overview
- https://github.com/daffainfo/all-about-apikey/blob/main/Books/Google%20Books.md
tags: token-spray,google,books
self-contained: true
requests:
- method: GET
path:
- "https://www.googleapis.com/books/v1/volumes/zyTCAlFPjgYC?key={{token}}"
matchers:
- type: word
words:
- "kind"
- "id"
- "etag"
part: body
condition: and