AWS Lambda example using Go, DynamoDB and API Gateway
POST /shortenSupported attributes:
| Attribute | Type | Required |
|---|---|---|
title |
string | Yes |
link |
string | Yes |
Example:
curl --request POST \
--url {{baseURL}}/shorten \
--header 'Content-Type: application/json' \
--data '{
"title": "My Link",
"link": "http://www.example.com",
}'GET /{{shortLink}}Example:
curl --request GET \
--url {{baseURL}}/{{shortLink}}