feat(api): appInWorkContoller добавлен метод Create
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace PARR.API.Contracts.V1
|
||||
namespace PARR.API.Contracts.V1
|
||||
{
|
||||
// https://tproger.ru/translations/luchshie-praktiki-razrabotki-rest-api-20-sovetov/
|
||||
|
||||
@@ -281,7 +279,6 @@ namespace PARR.API.Contracts.V1
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Job
|
||||
@@ -291,7 +288,13 @@ namespace PARR.API.Contracts.V1
|
||||
public static class Job
|
||||
{
|
||||
public const string GetAll = Base + "/jobs/";
|
||||
//public const string Get = Base + "/jobs/" + getParam;
|
||||
public const string Get = Base + "/jobs/" + getParam;
|
||||
|
||||
public const string GetScheduler = Base + "/jobs/" + getParam + "/scheduller";
|
||||
|
||||
public const string Delete = Base + "/jobs/" + getParam;
|
||||
public const string Create = Base + "/jobs/";
|
||||
public const string Update = Base + "/jobs/" + getParam;
|
||||
|
||||
public const string getParam = "{id}";
|
||||
}
|
||||
|
||||
27
PARR.API/Contracts/V1/Requests/ApplicationInWorkRequest.cs
Normal file
27
PARR.API/Contracts/V1/Requests/ApplicationInWorkRequest.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
namespace PARR.API.Contracts.V1.Requests
|
||||
{
|
||||
public class ApplicationInWorkRequest
|
||||
{
|
||||
|
||||
public required Guid WorkId { get; set; }
|
||||
|
||||
public required Guid ApplicationId { 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 NextRun { get; set; }
|
||||
|
||||
public bool IsAgent { get; set; }
|
||||
|
||||
public string? AgentName { get; set; }
|
||||
|
||||
public int? AgentTimeOutSec { get; set; }
|
||||
|
||||
public string? AgentScript { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user