Filter Layers by Type
All checks were successful
Build Docker Images / test (push) Successful in 1m37s
Build Docker Images / build-and-push (push) Successful in 1m35s

This commit is contained in:
2025-12-01 13:21:45 +01:00
parent 4d7df85df1
commit 7ea5ed506e
7 changed files with 56 additions and 29 deletions

View File

@@ -26,7 +26,9 @@ public class DataInboxService
var query = $"DataInbox/GetAll?start={start}&limit={filterRequest.PageSize}";
if (!string.IsNullOrEmpty(filterRequest.Search))
query += $"&name={Uri.EscapeDataString(filterRequest.Search)}";
{
query += $"&search={Uri.EscapeDataString(filterRequest.Search)}";
}
var response = await _httpClient.GetAsync(query);
response.EnsureSuccessStatusCode();

View File

@@ -28,10 +28,8 @@ public class LayerService
if (!string.IsNullOrEmpty(filterRequest.Search))
query += $"&name={Uri.EscapeDataString(filterRequest.Search)}";
/*
if (type.HasValue)
query += $"&type={type.Value}";
*/
if (filterRequest.Type.HasValue)
query += $"&type={(int)filterRequest.Type.Value}";
var response = await _httpClient.GetAsync(query);
response.EnsureSuccessStatusCode();