Complete Phase 2: Card import, deck building, and full API
- Add card import feature with fuzzy matching - Implement deck CRUD and management endpoints - Add user data APIs for groups, networks, preferences, activity, replays - Create comprehensive API documentation (API_DOCUMENTATION.md) - Add ENDPOINT_AUDIT.md for endpoint verification - Update documentation (README, ROADMAP, state.json) - Update architecture blueprint and Cockatrice analysis - All Phase 2 deliverables complete and documented
This commit is contained in:
@@ -12,6 +12,7 @@ This project provides a backend API for a Magic: The Gathering Online platform.
|
||||
- **Dual PostgreSQL** — Two databases: `mtgonline` for the application (users, decks, auth) and `mtgdata` for MTG card data.
|
||||
- **Redis Caching** — Used for card lookup caching and interaction pipeline state.
|
||||
- **Card Import Feature** — Users can import their card collection (fuzzy matching enabled) for deckbuilding constraints.
|
||||
- **Deck Management** — Full deck CRUD with precedents, suggestions, and status tracking (DRAFT/FINAL).
|
||||
- **REST API** — `/docs` (Swagger) available at runtime.
|
||||
|
||||
## Architecture
|
||||
@@ -44,7 +45,7 @@ mtgonline/
|
||||
|
||||
## API Endpoints
|
||||
|
||||
### Card Import (New)
|
||||
### Card Import (`/api/v1/card-import/`)
|
||||
|
||||
| Method | Endpoint | Description |
|
||||
|--------|----------|-------------|
|
||||
@@ -70,7 +71,7 @@ mtgonline/
|
||||
}
|
||||
```
|
||||
|
||||
### User Data Endpoints
|
||||
### User Data Endpoints (`/api/v1/user-data/`)
|
||||
|
||||
| Method | Endpoint | Description |
|
||||
|--------|----------|-------------|
|
||||
@@ -136,7 +137,7 @@ The backend will automatically download MTGJSON data on first startup (this may
|
||||
| Health Check | `http://localhost:5555/health` |
|
||||
| PostgreSQL (app) | `localhost:5432` |
|
||||
| PostgreSQL (MTG) | `localhost:5433` |
|
||||
| Redis | `localhost:6379` |
|
||||
| Redis | `localhost:6379` |
|
||||
|
||||
### Manual Data Refresh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user