- nodejs
- yarn
- serverless
- docker
Launch dynamoDB
docker run -d -p 8000:8000 amazon/dynamodb-local
Run serverless in local
serverless offline
If you do not have aws CLI installed and configured you can juste create an emply config file.
//create a file
~/.aws/credentials
Fill it with
[default]
aws_access_key_id=''
aws_secret_access_key=''
{URL}/{entity}/{method}/{id}
method :
- create
- read
- update
- delete
entity : a string longer than 3 characters
id : must be unique at creation
To list all entities use this url (without id). (The method is ignored).
{URL}/list/{entity}
{URL}/login //POST
with body :
{ "login": "string", "password": "string" }
The login return a JWT in string.
If you want to enable verification you can verify the Authorizations header with the function from jwt.js