WIP
npm install
In order to deploy the endpoint simply run:
serverless deploy --profile XXX
You can create, retrieve, update, or delete scans with the following commands:
curl -X POST https://XXXXXXXXXX.execute-api.us-east-1.amazonaws.com/main/scans -H "x-api-key: XXX" --data "{ ""text"": ""This is a scan."", ""user_id"": ""555"" }"
No output
curl https://XXXXXXX.execute-api.us-east-1.amazonaws.com/dev/scans
# Replace the <id> part with a real id from your scans table
curl https://XXXXXXX.execute-api.us-east-1.amazonaws.com/dev/scans/<id>
# Replace the <id> part with a real id from your scans table
curl -X PUT https://XXXXXXX.execute-api.us-east-1.amazonaws.com/dev/scans/<id> --data "{ ""text"": ""This is a new scan."", ""user_id"": ""555"" }"
# Replace the <id> part with a real id from your scans table
curl -X DELETE https://XXXXXXX.execute-api.us-east-1.amazonaws.com/dev/scans/<id>
No output