Skip to content

Instantly share code, notes, and snippets.

@croosen
Created May 6, 2019 10:28
Show Gist options
  • Save croosen/7fcdbecd3ff0bd9bedc567cd62dddff2 to your computer and use it in GitHub Desktop.
Save croosen/7fcdbecd3ff0bd9bedc567cd62dddff2 to your computer and use it in GitHub Desktop.
# set endpoint variable
$export ApiGatewayEndpoint="$AppId.execute-api.us-east-1.amazonaws.com/v1"
# add a new user
curl -vvv -X POST -d '{"email": "your@mail.com", "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