2024-03-27 11:13:52 +10:00
|
|
|
|
namespace PARR.API.Contracts.V1
|
2023-05-17 16:00:50 +10:00
|
|
|
|
{
|
|
|
|
|
|
// https://tproger.ru/translations/luchshie-praktiki-razrabotki-rest-api-20-sovetov/
|
|
|
|
|
|
|
|
|
|
|
|
//----------URL должен отражать структуру вложенных ресурсов----------
|
|
|
|
|
|
// GET /shops/2/products получить список продуктов из магазина 2.
|
|
|
|
|
|
// GET /shops/2/products/31 получить детали продукта 31 из магазина 2.
|
|
|
|
|
|
// DELETE /shops/2/products/31 удалить продукт 31 из магазина 2.
|
|
|
|
|
|
// PUT /shops/2/products/31 обновить данные о продукте 31. Используйте PUT на URL ресурса, а не коллекции.
|
|
|
|
|
|
// POST /shops создать новый магазин и вернуть данные о нём.Используйте POST на URL коллекции.
|
|
|
|
|
|
|
|
|
|
|
|
//---------URL должен начинаться с коллекции и заканчиваться идентификатором---------
|
|
|
|
|
|
// GET /shops/:shopId/ или GET /category/:categoryId
|
|
|
|
|
|
|
|
|
|
|
|
public static class ApiRoutes
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string Root = "api";
|
|
|
|
|
|
|
|
|
|
|
|
public const string Version = "v1";
|
|
|
|
|
|
|
|
|
|
|
|
public const string Base = Root + "/" + Version;
|
|
|
|
|
|
|
2023-12-12 15:56:42 +10:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Статистика
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public const string BaseStat = Base + "/statistics";
|
|
|
|
|
|
|
2023-05-17 16:00:50 +10:00
|
|
|
|
public static class ApiStatus
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string Version = Base + "/version";
|
|
|
|
|
|
public const string Health = Base + "/health";
|
|
|
|
|
|
public const string Metrics = Base + "/metrics";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-10-17 16:59:53 +10:00
|
|
|
|
public static class AgentTask
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetByIp = Base + "/agent-tasks/ip";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-09-15 16:32:46 +10:00
|
|
|
|
//public static class EsppData
|
|
|
|
|
|
//{
|
|
|
|
|
|
// public const string UploadTemplates = Base + "/espp-data/templates";
|
2023-08-24 17:03:12 +10:00
|
|
|
|
|
2023-09-15 16:32:46 +10:00
|
|
|
|
//}
|
2023-08-24 17:03:12 +10:00
|
|
|
|
|
2023-08-01 16:00:33 +10:00
|
|
|
|
public static class Test
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetMyIp = Base + "/tests/my-ip";
|
2023-10-17 09:42:18 +10:00
|
|
|
|
|
|
|
|
|
|
public const string GetNextScheduleDate = Base + "/tests/next-schedule-date/" + paramApplicationInWorkId + "/" + paramDate;
|
|
|
|
|
|
|
|
|
|
|
|
public const string GetNextSchedule = Base + "/tests/next-schedule/" + paramApplicationInWorkId + "/" + paramDate;
|
|
|
|
|
|
|
2023-11-30 16:18:14 +10:00
|
|
|
|
public const string CreateCache = Base + "/tests/cache/";
|
|
|
|
|
|
|
2024-09-16 17:01:04 +10:00
|
|
|
|
public const string IsWorkDay = Base + "/tests/is-work-day/";
|
|
|
|
|
|
|
2025-05-27 11:32:05 +10:00
|
|
|
|
public const string TestHandler = Base + "/tests/test/";
|
|
|
|
|
|
|
2024-09-18 16:32:45 +10:00
|
|
|
|
public const string GetWorkDay = Base + "/tests/get-work-day/{date}";
|
|
|
|
|
|
|
2023-10-17 09:42:18 +10:00
|
|
|
|
public const string paramDate = "{lastRunDate}";
|
|
|
|
|
|
public const string paramApplicationInWorkId = "{applicationInWorkId}";
|
2023-09-15 16:32:46 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static class Template
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetAll = Base + "/templates/";
|
2023-10-12 12:06:47 +10:00
|
|
|
|
public const string Get = Base + "/templates/" + getParam;
|
2023-10-13 14:21:49 +10:00
|
|
|
|
public const string ChangeState = Base + "/templates/" + getParam + "/change-state";
|
2023-10-11 15:28:37 +10:00
|
|
|
|
//public const string SetOkStatus = Base + "/templates/" + getParam + "/status/ok";
|
|
|
|
|
|
//public const string GetByStatusCode = Base + "/templates/status/{statusCode}";
|
2023-08-01 16:00:33 +10:00
|
|
|
|
|
2023-09-15 16:32:46 +10:00
|
|
|
|
|
|
|
|
|
|
public const string getParam = "{id}";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-10-08 13:53:57 +10:00
|
|
|
|
public static class TemplateHistory
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetAll = Base + "/template-histories/";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-10-12 12:06:47 +10:00
|
|
|
|
public static class TemplateScheduleEspp
|
2023-10-11 15:28:37 +10:00
|
|
|
|
{
|
|
|
|
|
|
public const string Get = Base + "/templates/" + templateId + "/schedule-esppid";
|
|
|
|
|
|
|
|
|
|
|
|
public const string Create = Base + "/templates/" + templateId + "/schedule-esppid";
|
|
|
|
|
|
|
|
|
|
|
|
public const string templateId = "{templateId}";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-05-08 14:47:18 +10:00
|
|
|
|
public static class Robot
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetAll = Base + "/robots/";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-10-06 13:58:10 +10:00
|
|
|
|
public static class RobotHistory
|
2023-10-04 15:22:06 +10:00
|
|
|
|
{
|
2023-10-13 15:28:17 +10:00
|
|
|
|
public const string GetAll = Base + "/robot-histories/";
|
2023-10-06 13:58:10 +10:00
|
|
|
|
public const string Create = Base + "/robot-histories/";
|
2023-10-04 15:22:06 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
2023-10-06 14:24:58 +10:00
|
|
|
|
public static class TaskStatus
|
2023-09-15 16:32:46 +10:00
|
|
|
|
{
|
2023-10-06 14:24:58 +10:00
|
|
|
|
public const string GetAll = Base + "/task-statuses/";
|
2023-08-01 16:00:33 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
2023-09-20 11:59:09 +10:00
|
|
|
|
public static class GeneratorTemplate
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string Create = Base + "/generator-templates/";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-08-26 14:04:49 +10:00
|
|
|
|
public static class Unit
|
2023-09-26 12:26:37 +10:00
|
|
|
|
{
|
2025-08-26 14:04:49 +10:00
|
|
|
|
public const string GetAll = Base + "/units/";
|
|
|
|
|
|
public const string Get = Base + "/units/" + getParam;
|
2024-01-11 10:46:38 +10:00
|
|
|
|
|
|
|
|
|
|
public const string getParam = "{id}";
|
2023-09-26 12:26:37 +10:00
|
|
|
|
}
|
2023-08-01 16:00:33 +10:00
|
|
|
|
|
2024-06-04 12:03:15 +10:00
|
|
|
|
public static class WorkGroup
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetAll = Base + "/work-groups/";
|
|
|
|
|
|
public const string Get = Base + "/work-groups/" + getParam;
|
|
|
|
|
|
|
|
|
|
|
|
public const string getParam = "{id}";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-08-16 13:59:27 +10:00
|
|
|
|
public static class ResponseArea
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetAll = Base + "/response-areas/";
|
2024-08-26 10:59:56 +10:00
|
|
|
|
public const string Get = Base + "/response-areas/" + getParam;
|
|
|
|
|
|
|
|
|
|
|
|
public const string getParam = "{responseAreaCode}";
|
2024-08-16 13:59:27 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
2023-10-04 15:22:06 +10:00
|
|
|
|
public static class RobotHistoryLevel
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetAll = Base + "/robot-history-levels/";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-10-05 16:56:02 +10:00
|
|
|
|
public static class RobotTask
|
|
|
|
|
|
{
|
2023-10-06 11:38:33 +10:00
|
|
|
|
public const string GetByRobotAndStatusTask = Base + "/robot-tasks/robots/" + robotCode + "/statuses/" + taskStatusCode;
|
2023-10-05 16:56:02 +10:00
|
|
|
|
|
|
|
|
|
|
public const string robotCode = "{robotCode}";
|
|
|
|
|
|
public const string taskStatusCode = "{taskStatusCode}";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-10-06 11:38:33 +10:00
|
|
|
|
public static class RobotTaskRobotStatus
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string ChangeRobotStatus = Base + "/robot-tasks/" + taskId + "/robot-status";
|
|
|
|
|
|
|
|
|
|
|
|
public const string taskId = "{taskId}";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-10-19 11:22:35 +10:00
|
|
|
|
public static class AgentHistory
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetAll = Base + "/agent-histories/";
|
|
|
|
|
|
public const string Get = Base + "/agent-histories/" + getParam;
|
|
|
|
|
|
public const string Create = Base + "/agent-histories/";
|
|
|
|
|
|
|
|
|
|
|
|
public const string getParam = "{id}";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-12-06 11:53:36 +10:00
|
|
|
|
#region User
|
|
|
|
|
|
|
2023-12-05 16:32:34 +10:00
|
|
|
|
public static class User
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetAll = Base + "/users/";
|
|
|
|
|
|
public const string Get = Base + "/users/" + getParam;
|
|
|
|
|
|
public const string Delete = Base + "/users/" + getParam;
|
|
|
|
|
|
public const string Create = Base + "/users/";
|
|
|
|
|
|
public const string Update = Base + "/users/" + getParam;
|
2023-10-04 15:22:06 +10:00
|
|
|
|
|
2023-12-05 16:32:34 +10:00
|
|
|
|
public const string getParam = "{id}";
|
|
|
|
|
|
}
|
2023-05-17 16:00:50 +10:00
|
|
|
|
|
2023-12-06 10:20:20 +10:00
|
|
|
|
public static class UserRoles
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string Get = Base + "/users/" + userParam + "/roles/";
|
|
|
|
|
|
public const string AddRole = Base + "/users/" + userParam + "/roles/";
|
|
|
|
|
|
public const string DeleteRole = Base + "/users/" + userParam + "/roles/" + roleParam;
|
|
|
|
|
|
|
|
|
|
|
|
public const string userParam = "{userId}";
|
|
|
|
|
|
public const string roleParam = "{roleId}";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-12-05 16:32:34 +10:00
|
|
|
|
public static class Role
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetAll = Base + "/roles/";
|
|
|
|
|
|
}
|
2023-05-17 16:00:50 +10:00
|
|
|
|
|
2023-12-06 11:53:36 +10:00
|
|
|
|
public static class UserProfile
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string Get = Base + "/user-profile/";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
2023-12-12 15:56:42 +10:00
|
|
|
|
#region Статистика
|
|
|
|
|
|
|
|
|
|
|
|
public static class StatRobotTask
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string Get = BaseStat + "/robot-tasks/";
|
2024-08-07 14:01:47 +10:00
|
|
|
|
public const string GetPeriodStatistics = BaseStat + "/robot-tasks/{robot}/period/";
|
2023-12-12 15:56:42 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static class StatRobotStatus
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string Get = BaseStat + "/robot-statuses/";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-12-12 16:28:46 +10:00
|
|
|
|
public static class StatRobotHistory
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string Get = BaseStat + "/robot-histories/";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-12-19 15:33:21 +10:00
|
|
|
|
public static class StatTemplate
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string Get = BaseStat + "/templates/";
|
2024-09-16 10:04:45 +10:00
|
|
|
|
public const string GetForPeriod = BaseStat + "/templates/period";
|
2023-12-19 15:33:21 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
2024-10-11 11:06:05 +10:00
|
|
|
|
public static class StatTemplateAutoControl
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetForPeriod = BaseStat + "/template-auto-controls/";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-08-26 14:04:49 +10:00
|
|
|
|
public static class StatUnit
|
2023-12-20 13:43:03 +10:00
|
|
|
|
{
|
2025-08-26 14:04:49 +10:00
|
|
|
|
public const string Get = BaseStat + "/units/";
|
|
|
|
|
|
public const string GetWithTemplates = BaseStat + "/units/templates";
|
|
|
|
|
|
public const string GetForPeriod = BaseStat + "/units/period";
|
2023-12-20 13:43:03 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-08-26 14:04:49 +10:00
|
|
|
|
public static class StatUnitFieldValues
|
2023-12-20 13:43:03 +10:00
|
|
|
|
{
|
2025-08-26 14:04:49 +10:00
|
|
|
|
public const string Get = BaseStat + "/unit-field-values/";
|
|
|
|
|
|
public const string GetForPeriod = BaseStat + "/unit-field-values/period";
|
2023-12-20 13:43:03 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
2023-12-21 16:00:08 +10:00
|
|
|
|
public static class StatOrder
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string Get = BaseStat + "/orders/";
|
2024-09-04 10:14:47 +10:00
|
|
|
|
public const string GetForPeriod = BaseStat + "/orders/period";
|
2023-12-21 16:00:08 +10:00
|
|
|
|
public const string TaskToEspp = BaseStat + "/orders/tasks";
|
|
|
|
|
|
public const string Statuses = BaseStat + "/orders/statuses";
|
|
|
|
|
|
public const string GetStatusesLastDay = BaseStat + "/orders/statuses/last-day/{statusCode}";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-05-23 14:09:37 +10:00
|
|
|
|
public static class StatRabbitMq
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetQueueStats = BaseStat + "/rabbitmq-queues/";
|
2024-05-24 14:52:25 +10:00
|
|
|
|
public const string GetConnectionStats = BaseStat + "/rabbitmq-connections/";
|
2024-05-23 14:09:37 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
2024-05-28 14:35:39 +10:00
|
|
|
|
public static class StatRobotState
|
|
|
|
|
|
{
|
2024-05-28 16:56:42 +10:00
|
|
|
|
public const string Get = BaseStat + "/robot-states/{robot}";
|
2024-05-28 14:35:39 +10:00
|
|
|
|
public const string Send = BaseStat + "/robot-states/";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-06-03 11:52:24 +10:00
|
|
|
|
public static class StatAuth
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string Get = BaseStat + "/auth";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-07-29 10:25:57 +10:00
|
|
|
|
public static class StatTemplateDistribution
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string Get = BaseStat + "/template-distribution/{applicationInWorkId}";
|
|
|
|
|
|
}
|
2024-06-03 11:52:24 +10:00
|
|
|
|
|
2024-08-20 09:33:13 +10:00
|
|
|
|
public static class StatResponseAreaWorkLoad
|
2024-08-19 13:36:56 +10:00
|
|
|
|
{
|
|
|
|
|
|
public const string GetAll = BaseStat + "/response-area-workloads/";
|
2024-08-26 16:08:09 +10:00
|
|
|
|
public const string GetByResponseAreas = BaseStat + "/response-area-workloads/";
|
2024-08-19 13:36:56 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
2024-08-20 09:33:13 +10:00
|
|
|
|
public static class StatWorkGroupWorkLoad
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string Get = BaseStat + "/work-group-workloads/{responseAreaCode}";
|
2024-09-09 15:48:49 +10:00
|
|
|
|
public const string GetByWorkGroups = BaseStat + "/work-group-workloads/";
|
2024-08-20 09:33:13 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static class StatWorkWorkLoad
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string Get = BaseStat + "/work-workloads/{workGroupId}";
|
2024-08-26 16:08:09 +10:00
|
|
|
|
public const string GetByApplicationInWork = BaseStat + "/work-workloads/";
|
2024-08-20 09:33:13 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
2023-12-12 15:56:42 +10:00
|
|
|
|
#endregion
|
|
|
|
|
|
|
2024-02-26 09:20:13 +10:00
|
|
|
|
#region Наряды
|
|
|
|
|
|
|
|
|
|
|
|
public static class Order
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetAll = Base + "/orders/";
|
2024-02-27 10:32:04 +10:00
|
|
|
|
public const string Get = Base + "/orders/" + getParam;
|
2024-02-26 09:20:13 +10:00
|
|
|
|
|
|
|
|
|
|
public const string getParam = "{id}";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-03-06 12:10:12 +10:00
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
#region TNK
|
|
|
|
|
|
|
|
|
|
|
|
public static class Process
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetAll = Base + "/processes/";
|
|
|
|
|
|
public const string Get = Base + "/processes/" + getParam;
|
|
|
|
|
|
|
|
|
|
|
|
public const string GetSubprcesses = Base + "/processes/" + getParam + "/subprocesses";
|
|
|
|
|
|
|
|
|
|
|
|
public const string Delete = Base + "/processes/" + getParam;
|
|
|
|
|
|
public const string Create = Base + "/processes/";
|
|
|
|
|
|
public const string Update = Base + "/processes/" + getParam;
|
|
|
|
|
|
|
|
|
|
|
|
public const string getParam = "{id}";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static class Subprocess
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetAll = Base + "/subprocesses/";
|
|
|
|
|
|
public const string Get = Base + "/subprocesses/" + getParam;
|
|
|
|
|
|
|
|
|
|
|
|
public const string GetTnks = Base + "/subprocesses/" + getParam + "/tnks";
|
|
|
|
|
|
|
|
|
|
|
|
public const string Delete = Base + "/subprocesses/" + getParam;
|
|
|
|
|
|
public const string Create = Base + "/subprocesses/";
|
|
|
|
|
|
public const string Update = Base + "/subprocesses/" + getParam;
|
|
|
|
|
|
|
|
|
|
|
|
public const string getParam = "{id}";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static class Tnk
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetAll = Base + "/tnks/";
|
|
|
|
|
|
public const string Get = Base + "/tnks/" + getParam;
|
|
|
|
|
|
|
|
|
|
|
|
public const string GetWorks = Base + "/tnks/" + getParam + "/works";
|
|
|
|
|
|
|
|
|
|
|
|
public const string Delete = Base + "/tnks/" + getParam;
|
|
|
|
|
|
public const string Create = Base + "/tnks/";
|
|
|
|
|
|
public const string Update = Base + "/tnks/" + getParam;
|
|
|
|
|
|
|
|
|
|
|
|
public const string getParam = "{id}";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static class Work
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetAll = Base + "/works/";
|
|
|
|
|
|
public const string Get = Base + "/works/" + getParam;
|
|
|
|
|
|
public const string Delete = Base + "/works/" + getParam;
|
|
|
|
|
|
public const string Create = Base + "/works/";
|
|
|
|
|
|
public const string Update = Base + "/works/" + getParam;
|
|
|
|
|
|
|
|
|
|
|
|
public const string getParam = "{id}";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-02-26 09:20:13 +10:00
|
|
|
|
#endregion
|
2024-03-12 15:09:12 +10:00
|
|
|
|
|
|
|
|
|
|
#region Job
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Альтернативная сущность AppliationInWork
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static class Job
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetAll = Base + "/jobs/";
|
2024-03-27 11:13:52 +10:00
|
|
|
|
public const string Get = Base + "/jobs/" + getParam;
|
|
|
|
|
|
|
|
|
|
|
|
public const string Delete = Base + "/jobs/" + getParam;
|
|
|
|
|
|
public const string Create = Base + "/jobs/";
|
|
|
|
|
|
public const string Update = Base + "/jobs/" + getParam;
|
2024-03-12 15:09:12 +10:00
|
|
|
|
|
|
|
|
|
|
public const string getParam = "{id}";
|
|
|
|
|
|
}
|
2024-07-25 12:26:54 +10:00
|
|
|
|
|
2025-07-01 17:20:48 +10:00
|
|
|
|
public static class JobGroup
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetAll = Base + "/job-groups/";
|
|
|
|
|
|
public const string Get = Base + "/job-groups/" + getParam;
|
|
|
|
|
|
|
|
|
|
|
|
public const string Delete = Base + "/job-groups/" + getParam;
|
|
|
|
|
|
public const string Create = Base + "/job-groups/";
|
|
|
|
|
|
public const string Update = Base + "/job-groups/" + getParam;
|
|
|
|
|
|
|
|
|
|
|
|
public const string getParam = "{id}";
|
|
|
|
|
|
}
|
2024-07-25 12:26:54 +10:00
|
|
|
|
|
2024-09-09 15:48:49 +10:00
|
|
|
|
public static class JobAutoControl
|
|
|
|
|
|
{
|
2024-09-10 11:51:24 +10:00
|
|
|
|
public const string Get = Base + "/jobs/" + appInWorkId + "/auto-control";
|
|
|
|
|
|
public const string Create = Base + "/jobs/" + appInWorkId + "/auto-control";
|
|
|
|
|
|
public const string Update = Base + "/jobs/" + appInWorkId + "/auto-control";
|
|
|
|
|
|
public const string Delete = Base + "/jobs/" + appInWorkId + "/auto-control";
|
2024-09-09 15:48:49 +10:00
|
|
|
|
|
|
|
|
|
|
public const string appInWorkId = "{applicationInWorkId}";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-07-25 12:26:54 +10:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Активатор/деактиватор шаблонов/расписаний
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static class TemplateActivator
|
|
|
|
|
|
{
|
2025-06-27 13:42:13 +10:00
|
|
|
|
public const string SendRequest = Base + "/jobs/" + jobId + "/template-activator";
|
2024-07-25 12:26:54 +10:00
|
|
|
|
|
2025-06-27 13:42:13 +10:00
|
|
|
|
public const string jobId = "{jobId}";
|
2024-07-25 12:26:54 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
2024-03-12 15:09:12 +10:00
|
|
|
|
#endregion
|
|
|
|
|
|
|
2024-04-03 15:21:47 +10:00
|
|
|
|
public static class Application
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetAll = Base + "/applications/";
|
|
|
|
|
|
}
|
2024-03-12 15:09:12 +10:00
|
|
|
|
|
2024-04-03 15:50:50 +10:00
|
|
|
|
public static class ApplicationType
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetAll = Base + "/application-types/";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-03-14 10:14:25 +10:00
|
|
|
|
public static class EkStatus
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetAll = Base + "/ek-statuses/";
|
|
|
|
|
|
|
|
|
|
|
|
public const string getParam = "{id}";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-04-08 12:16:14 +10:00
|
|
|
|
#region Расписание ЕСПП
|
|
|
|
|
|
|
|
|
|
|
|
public static class EsppScheduleTypeSchedule
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetAll = Base + "/espp-schedule-type-schedules/";
|
|
|
|
|
|
public const string Get = Base + "/espp-schedule-type-schedules/" + getParam;
|
|
|
|
|
|
|
|
|
|
|
|
public const string getParam = "{id}";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
2024-07-05 12:42:01 +10:00
|
|
|
|
|
|
|
|
|
|
#region Distributor
|
|
|
|
|
|
|
|
|
|
|
|
public static class Distributor
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string Distribute = Base + "/distributor/";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
2024-09-17 11:55:55 +10:00
|
|
|
|
|
|
|
|
|
|
public static class Weekend
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string GetAll = Base + "/weekends/";
|
|
|
|
|
|
public const string Get = Base + "/weekends/" + getParamDate;
|
|
|
|
|
|
public const string Create = Base + "/weekends/";
|
|
|
|
|
|
public const string Delete = Base + "/weekends/" + getParamDate;
|
|
|
|
|
|
|
|
|
|
|
|
public const string getParam = "{id}";
|
|
|
|
|
|
public const string getParamDate = "{date}";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-05-17 16:00:50 +10:00
|
|
|
|
}
|
2023-08-01 16:00:33 +10:00
|
|
|
|
|
|
|
|
|
|
}
|