https://github.com/dan-mba/aws-sam-dynamodb-api
AWS SAM template and Lambda code for a skills API
https://github.com/dan-mba/aws-sam-dynamodb-api
aws aws-apigateway aws-lambda aws-sam boto3 cognito dynamodb jwt python
Last synced: 6 months ago
JSON representation
AWS SAM template and Lambda code for a skills API
- Host: GitHub
- URL: https://github.com/dan-mba/aws-sam-dynamodb-api
- Owner: dan-mba
- Created: 2020-08-11T11:56:22.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T09:42:38.000Z (11 months ago)
- Last Synced: 2024-10-29T11:47:38.469Z (11 months ago)
- Topics: aws, aws-apigateway, aws-lambda, aws-sam, boto3, cognito, dynamodb, jwt, python
- Language: Python
- Homepage:
- Size: 319 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 ratingPOST /Skills - Add skill
```js
body: {
"rating": "rating Integer",
"skill": "skill String"
}
```PUT /Skills - Update skill rating
```js
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](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/what-is-sam.html) 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](https://aws.amazon.com/serverless/serverlessrepo/)