AWS Serverless Workshop
This is a serverless application to create a basic Restful service.
AWS serverless API project built using AWS SAM framework.
The stack is an orchestration of :
- API Gateway
- Lambda Functions
- DynamoDB
- Spoonacular.com API
-
Consumers of the API should be able access full REST endpoints for the following actions:
- Creating Taco recipes
- Updating Taco recipes
- Deleting Taco recipes
- Retrieving a list of Taco recipes
- Retrieve list of Taco sauces from Spoonacular.com Ingredient API
- Post Taco Recipe to Spoonacular.com API and return Recipe Card image
-
Taco recipes consist of the following data:
- Recipe Name
- Recipe Description
- Recipe Instructions
- Ingredients:
- Taco Shell
- Taco Protein(s)
- Taco Topping(s)
- Taco Sauce(s)
-
The API should use some sort of mock DB and/or caching to persist the Taco recipe data
-
The API should contain at least one "positive" unit test and one "negative" unit test
Interesting: Using Stackery.com as service/platform to deploy, monitor and control the application stack.
To perform the API operations you could use:
- The
.rest
files placed on thedocs/restFulCalls/
directory. - Postman collection shared on the
docs/postman/
directory.
For more details check the below demo
Important: On new deployments, if the POST endpoint for the FormData's payload return "...db ops error", you maybe are missing an AWS API Gateway configuration: Go to your API -> Settings -> Binary Media Types and add the
multipart/form-data
binary time, re-deploy and test.