Secure API
Welcome to the Secure REST API with JWT Key Management.
Endpoints
- POST /api/register - Register a new user. Body: {"username": "...", "password": "..."}
- POST /api/login - Login and receive a JWT. Body: {"username": "...", "password": "..."}
- GET /api/profile - View your profile (requires Bearer token)
- GET /api/admin/flag - Admin-only endpoint (requires admin role)