Skip to content

GET Images Endpoint

goldy4719 edited this page Apr 10, 2026 · 3 revisions

GET /images

Overview

Retrieve all images for the authenticated user, including metadata and download URLs.

Prerequisites

  • Valid JWT token

Implementation / Steps

  1. Extract the authenticated user_id.
  2. Query DynamoDB using the partition key.
  3. Sort results in descending order.
  4. Generate presigned URLs for each image.
  5. Validate and normalize the response data.
  6. Convert non-JSON-compatible values (e.g., Decimal).

Key Takeaways

  • Results are returned newest first.
  • Each image includes a download URL.
  • Data validation ensures consistent API responses.

Clone this wiki locally