File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,16 @@ To install globally run the following:
1010$ npm install -g aws-api-gateway-cli-test
1111```
1212
13+ You can also use it locally using:
14+
15+ ```
16+ $ npx aws-api-gateway-cli-test
17+ ```
18+
1319### Usage
1420
21+ If you have it globally installed:
22+
1523```
1624$ apig-test \
1725 --username='johndoe' \
@@ -31,6 +39,27 @@ $ apig-test \
3139 --body='{}'
3240```
3341
42+ If you have it locally installed:
43+
44+ ```
45+ $ npx aws-api-gateway-cli-test \
46+ --username='johndoe' \
47+ --password='password' \
48+ --user-pool-id='us-east-1_Xxxxxxxx' \
49+ --app-client-id='29xxyyxxyxxxyyxxxyy' \
50+ --cognito-region='us-east-1' \
51+ --identity-pool-id='us-east-1:99xxyyx-9999-9999-xx0x-99xxxxxxxx' \
52+ --invoke-url='https://99xxxxxxx.execute-api.us-east-1.amazonaws.com' \
53+ --api-gateway-region='us-east-1' \
54+ --api-key='x3xaacea33DCDA3aqafae28aCdaeEWXX1ada3acx' \
55+ --path-template='/users' \
56+ --method='GET' \
57+ --params='{}' \
58+ --additional-params='{}' \
59+ --access-token-header='cognito-access-token' \
60+ --body='{}'
61+ ```
62+
3463This command takes the following options:
3564
3665- ` username `
You can’t perform that action at this time.
0 commit comments