Skip to content

[API] Implement AnalyzeController Endpoints #5#30

Merged
ikeschmack merged 1 commit intomainfrom
5-api-implement-analyzecontroller-endpoints
Oct 23, 2025
Merged

[API] Implement AnalyzeController Endpoints #5#30
ikeschmack merged 1 commit intomainfrom
5-api-implement-analyzecontroller-endpoints

Conversation

@Jalen-Stephens
Copy link
Copy Markdown
Collaborator

Summary

Implements the full AnalyzeController API layer and wires it to the new AnalyzeService pipeline. Endpoints now perform real Supabase-backed analysis execution, including ownership checks, signed URL fetches, and C2PA manifest extraction.


Key Changes

  • Added working /api/analyze/{imageId} endpoint that triggers PENDING → COMPLETED/FAILED workflow
  • Integrated C2PA extraction via AnalyzeService and Supabase signed URLs
  • Implemented /api/metadata/{analysisId} and /api/confidence/{analysisId} with RLS ownership enforcement
  • Compare endpoint wired and stubbed correctly for Iteration 1
  • Added error propagation for missing storage paths, forbidden access, and extraction failures

Testing

  • Exercised end-to-end manually using stored Supabase images
  • Verified working manifest extraction and persistence to DB
  • Confirmed failure path safely stores error JSON for inspection

@Jalen-Stephens Jalen-Stephens added enhancement New feature or request API Controller / Endpoints in Backend labels Oct 23, 2025
@Jalen-Stephens Jalen-Stephens linked an issue Oct 23, 2025 that may be closed by this pull request
6 tasks
@Jalen-Stephens Jalen-Stephens added the Iteration 1 Iteration 1 for Advance SWE Class label Oct 23, 2025
@ikeschmack ikeschmack merged commit 6abe894 into main Oct 23, 2025
@github-project-automation github-project-automation bot moved this from In review to Done in @Jalen-Stephens's AI Detection Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API Controller / Endpoints in Backend enhancement New feature or request Iteration 1 Iteration 1 for Advance SWE Class

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[API] Implement AnalyzeController Endpoints

2 participants