/aws-sam-dynamodb-api

AWS SAM template and Lambda code for a skills API

Primary LanguagePython

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 sepcified 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 - Delete selected skill

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

DELETE /Skills - Delete all skills

body: {
  "confirm": "YES"
}

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