1.0.19 • Published 11 months ago
@firecamp/rest-executor v1.0.19
REST-executor
Pre-requisite
- Node.js v16
- Pre-script request only contains specific keys, so need to merge with actual one before send to the executor
- Post-script response only contains specific keys, so need to merge with actual one before going to use
TODO
- Test cases
- add graphql body test case
- chrome agent test cases not running due to chrome API not found
- Unable to use File, FormData API which prevent run form data body with File
Build
- Run:
pnpm build
Run test case
- Run:
pnpm test
Usage
Execute REST request
// React App
import executor from '@firecamp/rest-executor/dist/esm';
// Node.js
import executor from '@firecamp/rest-executor/dist/cjs';
// Run pre script
const { request, environment } = await executor.preScript(request, variables);
// Run request
const response = await executor.send(request);
// Set cookies
// Run post script
await executor.postScript(postScript: string, response: IRestResponse, variables: TPlainObject);
// Run test script
await executor.testScript(request: IRest, response: IRestResponse, variables: TPlainObject);
1.0.19
11 months ago
1.0.18
12 months ago
1.0.17
1 year ago
1.0.16
1 year ago
1.0.9
1 year ago
1.0.11
1 year ago
1.0.10
1 year ago
1.0.15
1 year ago
1.0.14
1 year ago
1.0.13
1 year ago
1.0.12
1 year ago
1.0.8
1 year ago
1.0.7
1 year ago
1.0.6
1 year ago
1.0.5
1 year ago
1.0.4
1 year ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago