A simple serverless API using AWS Lambda, API Gateway, and DynamoDB to manage orders.
Supports:
- GET /orders → Fetch all orders
- POST /orders → Add one item at a time
Client
│
▼
API Gateway (HTTP API)
│
│ Routes:
│ GET /orders → fetch all
│ POST /orders → insert single
▼
AWS Lambda (orders-handler-dev)
│
│ Handles:
│ - Single item insert
│
▼
DynamoDB (order-table-dev)
curl https://<api-id>/dev/orders[
{"order_id":"101","item":"Pen"},
{"order_id":"102","item":"Notebook"}
][
]curl -X POST https://<api-id>/dev/orders \
-H "Content-Type: application/json" \
-d '{"order_id":"103","item":"Pencil"}'{"message":"Item created"}