Creates AWS lambda functions and associated AWS resources for the "usefulapi-serverless" service
To house all of my one-off API ideas. This is the serverless version of this API.
- Follow this guide to get the initial Serverless Framework set up.
- Run the following commands:
npm install -g serverless
serverless install --url https://github.com/tomand285/usefulAPI-serverless
cd usefulAPI-serverless
sls deploy
- convert:
- Converts an Image to Base64
- Endpoint:
POST https://bfhzdjfhr8.execute-api.us-east-1.amazonaws.com/dev/convert
- Body:
Upload the image as multipart/form-data with no JSON body
- Response:
{ "image": { "filename": "image.jpg", "contentType": "image/jpeg", "base64": "/9j/4AAQSkZJRgABAQEBLAEsAAD/..." } }
- If you would like to make edits, please create a pull request or make an new issue.
- Andrew Tomko
- tomand285@gmail.com