Skip to content

dan-mba/aws-sam-dynamodb-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS SAM DynamoDB Skills API

An API to store skills & ratings for multiple users in a DynamoDB table.
All routes are protected by Cognito & require the JWT in the Authorization header
The username from the JWT is stored with each item in the table

Parameter Definitions

rating: Integer (1-5) representing expertise level
skill: String representing a specific skill

API Definition

GET /Skills - Get all skills
GET /Skills/{rating} = Get skill with specified rating

POST /Skills - Add skill

body: {
  "rating": "rating Integer",
  "skill": "skill String"
}

PUT /Skills - Update skill rating

body: {
  "oldrating": "current rating Integer",
  "newrating": "new rating Integer",
  "skill": "skill String"
}

DELETE /Skills/{rating}/{skill} - Delete selected skill

DELETE /Skills/ALL_SKILLS - Delete all skills

AWS SAM Resources

See the AWS SAM developer guide for an introduction to SAM specification, the SAM CLI, and serverless application concepts.

Next, you can use AWS Serverless Application Repository to deploy ready to use Apps that go beyond hello world samples and learn how authors developed their applications: AWS Serverless Application Repository main page