Update AuthController and Login model for API changes

- Updated API documentation in AuthController.cs to include an optional "id" field in the authentication request body.
- Modified the Login record in Login.cs to require a "Password" field and include optional "Id" and "Username" fields, along with updated documentation comments.
This commit is contained in:
Developer 02
2025-04-10 19:12:01 +02:00
parent f0ed6137d1
commit 0147f525fa
2 changed files with 11 additions and 7 deletions

View File

@@ -51,6 +51,12 @@ namespace EnvelopeGenerator.GeneratorAPI.Controllers
/// "username": "MaxMustermann",
/// "password": "Geheim123!"
/// }
///
/// POST /api/auth?cookie=true
/// {
/// "id": "1",
/// "password": "Geheim123!"
/// }
///
/// </remarks>
/// <response code="200">Erfolgreiche Anmeldung. Gibt das JWT-Token im Antwortkörper oder als Cookie zurück, wenn 'cookie' wahr ist.</response>