Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

jokes-api

serverless joke api with token auth. random joke from dynamodb — no valid token, 401.

python aws lambda api gateway dynamodb


what it does

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


sample request

GET /Production/api/jokes HTTP/1.1
Host: h0zensjtaj.execute-api.ap-south-1.amazonaws.com
auth: 0

sample response

{
    "content": "What did the ocean say to the beach? Nothing, it just waved.",
    "authenticationStatus": true,
    "error": null
}

built by kjhq · @kjhqdev

About

serverless joke api with token auth on aws lambda

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages