Skip to content

jahangirmohammed/serverless-crud-scala

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

serverless-crud-scala

Serverless Crud Service in Scala which provides a basic CRUD scaffold - http://serverless.com

Installation

Ensure you are on Serverless v1 and have sbt installed.

  1. Run serverless install --url https://github.com/jahangirmohammed/serverless-crud-scala to install the service in your current working directory
  2. Next up cd into the service with cd serverless-crud-scala
  3. Ensure you have set up required credentials as described here
  4. Run sbt assembly
  5. Deploy with serverless deploy. You will see the service information displayed and end-points in it.

Usage

Create

curl -X POST https://XXXX.execute-api.region.amazonaws.com/dev/todos --data '{ "body" : "Learn Serverless" }'

Read all

curl https://XXXX.execute-api.region.amazonaws.com/dev/todos

Read one

curl https://XXXX.execute-api.region.amazonaws.com/dev/todos/<id>

Update

curl -X PUT https://XXXX.execute-api.region.amazonaws.com/dev/todos/<id> --data '{ "body" : "Understand Serverless" }'

DELETE

curl -X DELETE https://XXXX.execute-api.region.amazonaws.com/dev/todos/<id>

About

Serverless Crud Service in Scala - http://serverless.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages