2023-06-02 15:26:29 +03:30
|
|
|
|
namespace MikrotikAPI
|
|
|
|
|
{
|
|
|
|
|
public static class Endpoints
|
|
|
|
|
{
|
|
|
|
|
public const string Log = "log";
|
|
|
|
|
public const string Wireguard = "interface/wireguard";
|
|
|
|
|
public const string Interface = "interface";
|
|
|
|
|
public const string WireguardPeers = "interface/wireguard/peers";
|
|
|
|
|
public const string SystemResource = "system/resource";
|
|
|
|
|
public const string SystemIdentity = "system/identity";
|
|
|
|
|
public const string ActiveUsers = "user/active";
|
|
|
|
|
public const string Jobs = "system/script/job";
|
|
|
|
|
public const string MonitorTraffic = "interface/monitor-traffic";
|
2024-01-25 19:30:59 +03:30
|
|
|
|
public const string Scripts = "system/script";
|
|
|
|
|
public const string Scheduler = "system/scheduler";
|
|
|
|
|
public const string Execute = "execute";
|
|
|
|
|
public const string DNS = "ip/dns";
|
|
|
|
|
public const string IPPool = "ip/pool";
|
|
|
|
|
public const string IPAddress = "ip/address";
|
2023-06-02 15:26:29 +03:30
|
|
|
|
public static string Empty => string.Empty;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum RequestMethod
|
|
|
|
|
{
|
|
|
|
|
GET,
|
|
|
|
|
POST,
|
|
|
|
|
PUT,
|
|
|
|
|
DELETE,
|
|
|
|
|
PATCH
|
|
|
|
|
}
|
|
|
|
|
}
|