-
Notifications
You must be signed in to change notification settings - Fork 0
Implement POST /api/events/ingest (Raw Event Intake) #8
Copy link
Copy link
Open
Description
Objective
Create a single, canonical ingestion endpoint that accepts raw events, validates them, and persists them without interpretation.
This endpoint is data plumbing, not business logic.
Scope of Work
You must implement:
- Route: POST /api/events/ingest
- Controller: events.controller.js (or equivalent)
- Clean route registration
- Proper HTTP responses
Acceptance Criteria (Non-Negotiable)
- Endpoint exists at POST /api/events/ingest
- Requires JWT authentication
- Accepts valid event payload
- Returns 201 Created on success
- Returns JSON response (no empty bodies)
Explicit Exclusions
- No scoring logic
- No aggregation
- No side effects
- No async jobs
- No Redis
- No AI calls
If it’s not ingestion, it’s not part of this issue.
Proof Required (Attach to PR)
- Screenshot: Successful Postman request (201)
- Screenshot: Auth rejection (401)
- Controller code snippet
Reactions are currently unavailable