feat(api): paginationQuery добавлен параметр отключения пагинации. Контроллер ApplicationInWorks GetAll.

This commit is contained in:
Mikhail Kuznetsov
2024-03-12 15:09:12 +10:00
parent 10661a88c6
commit 27b051a987
8 changed files with 140 additions and 9 deletions

View File

@@ -283,6 +283,21 @@ namespace PARR.API.Contracts.V1
#endregion
#region Job
/// <summary>
/// Альтернативная сущность AppliationInWork
/// </summary>
public static class Job
{
public const string GetAll = Base + "/jobs/";
//public const string Get = Base + "/jobs/" + getParam;
public const string getParam = "{id}";
}
#endregion
}
}

View File

@@ -53,5 +53,10 @@
_pageSize = pageSizeDefault;
}
}
/// <summary>
/// Выключить пагинацию
/// </summary>
public bool IsDisabledPagination { get; set; } = false;
}
}

View File

@@ -0,0 +1,31 @@
namespace PARR.API.Contracts.V1.Responses
{
public class ApplicationInWorkResponse
{
public Guid Id { get; set; }
public required string TemplateDuration { get; set; }
public required string ShortDescription { get; set; }
public required string FullDescription { get; set; }
public required string Solution { get; set; }
public DateTimeOffset? LastRun { get; set; }
public DateTimeOffset NextRun { get; set; }
public bool IsAgent { get; set; }
public string? AgentName { get; set; }
public int? AgentTimeOutSec { get; set; }
public string? AgentScript { get; set; }
public WorkResponse? Work { get; set; }
public ApplicationResponse? Application { get; set; }
}
}