Serverless Crud Service in Scala which provides a basic CRUD scaffold - http://serverless.com
Ensure you are on Serverless v1 and have sbt installed.
- Run
serverless install --url https://github.com/jahangirmohammed/serverless-crud-scala
to install the service in your current working directory - Next up cd into the service with
cd serverless-crud-scala
- Ensure you have set up required credentials as described here
- Run
sbt assembly
- Deploy with
serverless deploy
. You will see the service information displayed and end-points in it.
curl -X POST https://XXXX.execute-api.region.amazonaws.com/dev/todos --data '{ "body" : "Learn Serverless" }'
curl https://XXXX.execute-api.region.amazonaws.com/dev/todos
curl https://XXXX.execute-api.region.amazonaws.com/dev/todos/<id>
curl -X PUT https://XXXX.execute-api.region.amazonaws.com/dev/todos/<id> --data '{ "body" : "Understand Serverless" }'
curl -X DELETE https://XXXX.execute-api.region.amazonaws.com/dev/todos/<id>