Context
Campaign creation has service and validation tests, but the API route combines JWT auth, route-level rate limiting, controller validation, Cairo client selection, and response mapping. These integration points are not covered by route/controller tests.
Scope
Out of Scope
- Live Cairo/StarkNet calls
- Campaign listing or update endpoints
- Changing campaign creation business rules
Acceptance Criteria
Suggested Files or Packages
src/components/v1/campaign/
src/components/v1/routes.api.v1.ts
src/__tests__/
src/appMiddlewares/jwtAuth.api.ts
Context
Campaign creation has service and validation tests, but the API route combines JWT auth, route-level rate limiting, controller validation, Cairo client selection, and response mapping. These integration points are not covered by route/controller tests.
Scope
POST /api/v1/campaignscampaign_ref,target_amount,title, anddonation_tokenOut of Scope
Acceptance Criteria
bun run type-checkpassesbun run testpassesbun run lintpassesSuggested Files or Packages
src/components/v1/campaign/src/components/v1/routes.api.v1.tssrc/__tests__/src/appMiddlewares/jwtAuth.api.ts