An AWS Lambda solution written using the Serverless Toolkit with a DynamoDB backend.
The service includes pagination, key/value searches plus a collection of common needs including but not limited too, order/by and limit clauses.
NOTE: To deploy from your desktop you must have an existing AWS account and command line access.
Firstly, ensure you have installed the Serverless Toolkit.
npm install serverless -g
Then, from the project root folder simply enter the following command to provision and deploy your sevice to AWS.
sls deploy
NAME | URL | VERB | DESCRIPTION |
---|---|---|---|
CREATE | /posts | POST | Create a new item in permanent storage |
LIST | /posts | GET | Retrieve a paginated listing from permanent storage |
GET | /posts/:id | GET | Retrieve a individual item using the id passed as a route parameter |
UPDATE | /posts/:id | PUT | Update details of a post by providing a full array of model data |
EDIT | /posts/:id | PATCH | Update details of a post by providing only those elements you wish to update |
DELETE | /posts/:id | DELETE | Remove an item from permanent storage |
Please report any bugs on the Issue Tracker.