- Data fetched from Open5e API: 3,215 items (339 spells, 330 creatures, 24 classes, 2,319 magic items, 203 equipment) - FastAPI app with API key auth (X-API-Key header or ?api_key= param) - Sliding window rate limiting (60 req/min, 10K req/day) - Dice rolling endpoint (e.g., /api/dice/roll?spec=2d20+5) - Full-text search across all resource types - Pagination, filtering (name, level, school, class, etc.) - Admin CLI for API key management - nginx + systemd service ready for deployment
16 lines
No EOL
348 B
Desktop File
16 lines
No EOL
348 B
Desktop File
[Unit]
|
|
Description=D&D SRD 5.2 API Server
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=hermes
|
|
WorkingDirectory=/home/hermes/workspace/dnd-srd-api
|
|
ExecStart=/usr/local/lib/hermes-agent/venv/bin/uvicorn app.main:app --host 127.0.0.1 --port 8000
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
|
|
Environment=PYTHONUNBUFFERED=1
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |