Merge remote-tracking branch 'origin/main' into feature/web-zavady

This commit is contained in:
PatTheEvil committed 2026-12-04 15:44:41 +01:00
commit 1550c0343b
45 files changed
+1516 -169

No files matched your search

@@ -8,6 +8,13 @@ namespace Helpdesk.Web.Api;
/// <summary>Endpointy API pro přihlášeného uživatele; access token přidává <see cref="BearerTokenHandler"/>.</summary>
public sealed class HelpdeskApiClient(HttpClient http)
{
public async Task<string> GetOpenApiAsync(CancellationToken ct)
{
using var response = await http.GetAsync("api/v1/admin/openapi/v1.json", ct);
await ApiResponse.EnsureSuccessAsync(response, ct);
return await response.Content.ReadAsStringAsync(ct);
}
public async Task<UserDto> GetMeAsync(CancellationToken ct)
{
using var response = await http.GetAsync("users/me", ct);