This API has the functionality to store feedbacks given to an appication.
npm install -g serverless
serverless dynamodb install
npm install
serverless config credentials --provider aws --key YOUR_KEY_HERE --secret YOUR_KEY_SECRET_HERE
serverless offline start
curl -X POST -H "Content-Type:application/json" http://localhost:3000/dev/feedback --data '{
"note": 5,
"feedback": "Best application in the world",
"brand": 2,
"application": "chat"
}'
Example Result:
{
"id": "ckonq52rp0005qhocdiafg1qu",
"note": 5,
"feedback": "Best application in the world",
"date": 1620960686920,
"brand": 2,
"application": "chat"
}
In order to deploy the endpoint simply run
serverless deploy