Create the API layer connecting the Fastify backend to the OCR service, including job queue for async processing.
Parent Issue: #12 (OCR-powered smart capture) Priority: P0 - Foundation Dependencies: OCR Service Container Setup
Scope
OCR Service Endpoints (Python/FastAPI)
POST /extract # Generic OCR extraction
POST /extract/vin # VIN-specific extraction (future)
POST /extract/receipt # Receipt-specific extraction (future)
POST /jobs # Submit async job (for large files)
GET /jobs/{job_id} # Poll job status
Backend Proxy Routes (Fastify)
POST /api/ocr/extract # Proxy to OCR service
POST /api/ocr/jobs # Submit async job
GET /api/ocr/jobs/:jobId # Poll job status
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Overview
Create the API layer connecting the Fastify backend to the OCR service, including job queue for async processing.
Parent Issue: #12 (OCR-powered smart capture)
Priority: P0 - Foundation
Dependencies: OCR Service Container Setup
Scope
OCR Service Endpoints (Python/FastAPI)
Backend Proxy Routes (Fastify)
File Upload Handling
Async Job Queue (for large files like PDFs)
pending,processing,completed,failedResponse Format
Directory Structure
OCR Service (Python)
Backend (Fastify)
Acceptance Criteria
/api/ocr/extractaccepts image upload and returns OCR resultTechnical Notes
Out of Scope