DynamoDB:
docker run -d --name dynamodb -p 8000:8000 peopleperhour/dynamodb
AWS_ACCESS_KEY_ID=me AWS_SECRET_ACCESS_KEY=secret aws dynamodb create-table --region us-east-1 --cli-input-json file://journal.json --endpoint-url http://localhost:8000
AWS_ACCESS_KEY_ID=me AWS_SECRET_ACCESS_KEY=secret aws dynamodb list-tables --region us-east-1 --endpoint-url http://localhost:8000
Usage:
curl --verbose "http://127.0.0.1:8080/register" -X POST -H 'Content-type: application/json' -d '{"email": "[email protected]", "password": "p@ssw0rd"}'
curl --verbose "http://127.0.0.1:8080/users/<UUID>/change-email" -X POST -H 'Content-type: application/json' -d '{"oldEmail": "[email protected]", "newEmail": "[email protected]"}'