haxmas-day-4

API for sharing Christmas messages, written in TypeScript using Hono and SQL :3

New message

curl -X POST https://christmas-message-api.n5lyh9.workers.dev/api/messages/new \
  -H "content-type: application/json" \
  -d '{"message":"Merry Christmas and a Happy New Year!", "author":"Some1","recipient":"Bob"}'

Read message

curl https://christmas-message-api.n5lyh9.workers.dev/api/messages/1/Bob

Update message

curl -X POST https://christmas-message-api.n5lyh9.workers.dev/api/messages/update/1 \
  -H "content-type: application/json" \
  -d '{"message":"Oops, Christmas passed, but Happy New Year!", "recipient":"Bob"}'