0.0.6 • Published 2 years ago

seqreq v0.0.6

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

sequential-request

Status

CI Status

Usage

You can be helpful to install it globally:

npm i -g seqreq

# then use it for your requests
seqreq myfile.yml

But you can use it even without installing:

npx seqreq myfile.yml

YAML File

A sample file would look like this:

- VERSION: 0.0.1
  BASE_URL: https://jsonplaceholder.typicode.com
  DEFAULT:
    HEADERS:
      Cache-Control: no-cache
  DEFAULT_GET:
    HEADERS:
      Accept: application/json

- GET: /todos/3

- GET: /posts/1

- POST: https://example.com/api/test
  HEADERS:
    Content-Type: application/json
  BODY:
    property1: data1
    property2: data2

DEBUG types

CONTEXT REQ_BODY REQ_HEADERS RES_BODY RES_HEADERS STATUS TITLE LOG