Test project to create a fully server-less application on AWS combining S3, Lambda, API Gateway and DynamoDB
- Lambdas: Serverless framework used to manage and deploy to AWS
- Lambdas: serverless-webpack used to optimise uploaded code
- API Gateway: configured manually
- DynamoDB: table created manually
- IAM: Custom IAM role in serverless config to provide access to specific DynamoDB table
-
GET: /omdb/search/{query}/{page}
Test: https://api.kimmr.com/omdb/search/predator
Queries OMDB database with path parameter as search term -
GET: /watchlist
Test: https://api.kimmr.com/watchlist
Retrieves all watchlist items.
Results are currently not paginated or limited -
POST: /watchlist
Test: https://api.kimmr.com/watchlist
Add a new item to the watchlist
Must contain 'id' param in json post body
Returns 400 error when item already exists -
GET: /watchlist/{item}
Test: https://api.kimmr.com/watchlist/tt0093770
Retrieves details of specified item
Returns 400 error when item does not exist -
DELETE: /watchlist/{item}
Removes the specified item from the watchlist
Returns 400 error when item does not exist
- Create simple UI to manage watchlist and add items directly from OMDB search results
- Add CF script to create the DynamoDB table
- Add CF script to define and configure the API Gateway endpoints