While I'm Out - Backend API

Next.js backend API for shopping list management with DynamoDB

API Endpoints

Health Check

GET /api/health

Test endpoint →

Change Password

/change-password

/reset-password

Open password page →

Shopping Lists

GET /api/shopping-lists

POST /api/shopping-lists

GET /api/shopping-lists/[id]

PUT /api/shopping-lists/[id]

DELETE /api/shopping-lists/[id]

Shopping Items

POST /api/shopping-lists/[id]/items

PUT /api/shopping-lists/[id]/items/[itemId]

DELETE /api/shopping-lists/[id]/items/[itemId]

Setup Instructions

1. Environment Configuration

Copy environment.example to .env.local and configure your AWS credentials.

2. DynamoDB Tables

Create the required DynamoDB tables as specified in the README.

3. Authentication

All endpoints require the x-user-id header for user identification.