feat(mint): canonical /mint + 308-redirect deprecated aliases (E1)#19
Conversation
Per user decision: id.chitty.cc/mint is the canonical external mint route — short, logical, identity-service-as-mint-front-door. Backend stays the same (handleDirectChittyIdGeneration proxying to mint.chitty.cc/api/mint). Frontend simplifies to /mint. Deprecated aliases with 308 redirect + reminder headers: - POST /v1/mint - GET /api/get-chittyid - GET /generate All three redirect to https://id.chitty.cc/mint with: - Status 308 (preserves method + body) - Deprecation: true - Sunset: 2027-05-27 - Link to successor-version + SOP-012 reference - Warning 299 (deprecation reason) - JSON body with _deprecation reminder for clients that ignore redirects Refs: - mint-discovery.md G3 (multiple competing mint endpoints) - SOP-012 v0.3.0 (canonical format) - User decision 2026-05-27: id.chitty.cc/mint as base Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR establishes ChangesCanonical Mint Endpoint and Legacy Route Deprecation
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
POST /mint is now the canonical endpoint. /v1/mint, /api/get-chittyid, /generate return 308 to /mint with deprecation reminder headers + JSON body. Sunset 2027-05-27.
Summary by CodeRabbit