serverless joke api with token auth. random joke from dynamodb — no valid token, 401.
fetches a random joke from the database. requires a valid auth header. built on aws lambda, api gateway, and dynamodb.
- proper auth checks
- exception handling + logging
- 500 on server errors with a clear message
python lambda api gateway dynamodb
GET /Production/api/jokes HTTP/1.1
Host: h0zensjtaj.execute-api.ap-south-1.amazonaws.com
auth: 0
{
"content": "What did the ocean say to the beach? Nothing, it just waved.",
"authenticationStatus": true,
"error": null
}