Skip to content

tmicheletto/lap-analyser-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless CRUD

Serverless service which provides a basic CRUD scaffold.

Installation

Make sure that you use Serverless v1.

  1. Run serverless install --url https://github.com/pmuens/serverless-crud to install the service in your current working directory
  2. Next up cd into the service with cd serverless-crud
  3. Run npm install
  4. Deploy with serverless deploy

How to use

Simply perform requests against the exposed endpoints:

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>

AWS services used

  • Lambda
  • API Gateway
  • DynamoDB

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published