Provide REST APIs for clients to post gigs and freelancers to view their gigs. This should integrate with both Postgres and blockchain hooks.
Tasks:
Define DTOs + validation for gig creation.
POST /jobs → creates a new gig (store metadata in DB + call contract).
GET /jobs/:id → fetch gig details (merge DB + blockchain state).
GET /jobs/my → list gigs for current user.
Connect with BlockchainService.createGig(...) when contract call integration is ready.
Acceptance Criteria:
✅ Clients can post a gig through API.
✅ Freelancers can view gig details.
✅ API returns consistent response merging off-chain + on-chain data.
Provide REST APIs for clients to post gigs and freelancers to view their gigs. This should integrate with both Postgres and blockchain hooks.
Tasks:
Define DTOs + validation for gig creation.
POST /jobs → creates a new gig (store metadata in DB + call contract).
GET /jobs/:id → fetch gig details (merge DB + blockchain state).
GET /jobs/my → list gigs for current user.
Connect with BlockchainService.createGig(...) when contract call integration is ready.
Acceptance Criteria:
✅ Clients can post a gig through API.
✅ Freelancers can view gig details.
✅ API returns consistent response merging off-chain + on-chain data.