# LandveX Fas 2 — Bounty-flöde (förenklad) ## Status: ✅ KLAR ## Endpoints | Metod | Endpoint | Beskrivning | |-------|----------|-------------| | `POST` | `/v0/bounties` | Skapa ny bounty | | `GET` | `/v0/bounties/{id}` | Hämta bounty | | `POST` | `/v0/bounties/{id}/submit` | Markera bounty som inskickad | ## Teknik - **Framework:** Python + FastAPI - **Databas:** SQLite (`landvex.db`) - **Port:** 8084 - **Katalog:** `/home/bernt/.openclaw/workspace/landvex-paket/bounties/` ## Snabbtest ```bash # Skapa bounty curl -X POST http://localhost:8084/v0/bounties \ -H 'Content-Type: application/json' \ -d '{"title":"Test Bounty","description":"A test","reward":100.0}' # Hämta bounty curl http://localhost:8084/v0/bounties/1 # Markera som inskickad curl -X POST http://localhost:8084/v0/bounties/1/submit ``` ## Filer - `main.py` — FastAPI-applikation - `requirements.txt` — beroenden - `FAS2_STATUS.md` — denna fil