Skip to content

This API provides many different useful resources. This is the serverless version of this API.

License

Notifications You must be signed in to change notification settings

tomand285/usefulAPI-serverless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

useful API - serverless

Creates AWS lambda functions and associated AWS resources for the "usefulapi-serverless" service

What is this repository for?

To house all of my one-off API ideas. This is the serverless version of this API.

How do I get set up?

  • 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

Architecture Diagram

Diagram of Useful API

Services

  • 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/..."
          }
      }
      

Contribution guidelines

  • If you would like to make edits, please create a pull request or make an new issue.

Who do I talk to?

About

This API provides many different useful resources. This is the serverless version of this API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors