Skip to content

The Cat API for AWS Cloudformation using AWS CDK

Notifications You must be signed in to change notification settings

katzrkool/cat-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The CAT Api

Deployment to AWS using AWS CDK and Github Actions


Author: Edvinas Bosas


This creates a REST API with:

  • DynamoDB Table
  • 4 Lambda Functions
  • 4 API Gateway Endpoints, each associated with a different Lambda function:
    • POST /create
    • GET /list
    • PUT /update
    • DELETE /delete

Expected incoming JSON structure for /create and /update endpoints

Required headers: Content-Type: application/json

  • POST /create:
    {
        "name": "string",
        "age": "string",
        "description": "string"
    }
  • PUT /update:
    • PUT /update URI must point to a specific cat: PUT /update?id={uuid}
    {
        "name": "string",
        "age": "string",
        "description": "string"
    }

Expected URL parameter structure for /list and /delete endpoints

  • /list

    • Simply calling GET /list endpoint returns all cat entries in the database.

    • Calling GET /list?id={uuid} will return a specific cat from the database.

    • {uuid} can be multiple comma seperated values: GET /list?id={uuid1},{uuid2}

  • /delete

    • Requires a single {uuid} parameter: DELETE /delete?id={uuid}

About

The Cat API for AWS Cloudformation using AWS CDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages