Created
May 6, 2019 10:28
-
-
Save croosen/7fcdbecd3ff0bd9bedc567cd62dddff2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set endpoint variable | |
$export ApiGatewayEndpoint="$AppId.execute-api.us-east-1.amazonaws.com/v1" | |
# add a new user | |
curl -vvv -X POST -d '{"email": "[email protected]", "phone": "0123456789"}' -H "Content-Type: application/json" https://$ApiGatewayEndpoint/user | |
# list users | |
curl -vvv -X GET https://$ApiGatewayEndpoint/user |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment