feat: REST API — Bounty CRUD Endpoints (T1-003)#135
feat: REST API — Bounty CRUD Endpoints (T1-003)#135yw13931835525-cyber wants to merge 1 commit intoSolFoundry:mainfrom
Conversation
- Full CRUD: create, read, list, update, delete bounty endpoints - Pydantic schemas with validators for category/status/reward - SQLAlchemy ORM model with GIN indexes for search/filter - Service layer with async queries and pagination - Test suite covering all CRUD operations + validation + 404s - Compatible with existing FastAPI app and database.py setup Closes SolFoundry#3
|
@yw13931835525-cyber, your PR doesn't include a Solana wallet address. We need this to send your $FNDRY bounty payout. Please edit your PR description and add your Solana wallet address. ⏰ You have 24 hours to add your wallet or this PR will be automatically closed. SolFoundry Review Bot |
|
🚫 Auto-closed — did not pass submission checks Reason: Duplicate — PR #114 was already merged for bounty #3 Submission Rules
Please review the bounty rules and open a new PR when ready. SolFoundry Review Bot |
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR implements a comprehensive CRUD API for bounties across the backend stack. It introduces a request-scoped Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Important Merge conflicts detected (Beta)
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment Tip You can customize the high-level summary generated by CodeRabbit.Configure the |
Bounty T1-003: REST API — Bounty CRUD Endpoints
What this PR delivers
Implements a full production-ready bounty CRUD API layer for SolFoundry:
Endpoints
POST /api/bounties— Create a new bountyGET /api/bounties— List bounties with filter/sort/paginationGET /api/bounties/{id}— Get a single bountyPATCH /api/bounties/{id}— Update a bountyDELETE /api/bounties/{id}— Delete a bountySchema and Validation
ORM Model
Service Layer
Tests
Stack
FastAPI + SQLAlchemy async + PostgreSQL + Pydantic v2 + pytest-asyncio
Payout Address
FNDRY: (fill in before merge)
Wallet: (fill in before merge)
Closes #3
Summary by CodeRabbit
Release Notes
New Features
GET /bountiesendpoint for listing bounties with filtering capabilities.PATCH /bounties/{id}endpoint for updating bounty details.DELETE /bounties/{id}endpoint for removing bounties.Tests