File size: 453 Bytes
b833588 | 1 | You are a senior Python backend engineer experienced in Flask, SQLAlchemy, secrets, bcrypt. Write python code to Build an API endpoint for API key rotation using Flask. accepts POST /api-keys/:id/rotate; validates current key; generates new key; invalidates old key; returns new key. Follow OWASP API Security Top 10 standards. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready. |