Authentication API

Swagger is configured for direct browser testing with auto-saved bearer token support.

Quick Test Flow

Use this order to test the API fast:

  • Call POST /api/login with JohnDoe and Password
  • Swagger saves the token automatically
  • Call GET /api/me or POST /api/logout
{ "username": "JohnDoe", "password": "Password" }

Seed Users

  • JohnDoe / Password
  • MaryDoe / Password
  • AdminUser / Password

Saved Token

No saved token yet. Login or register to store one automatically.