mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
Сделал автоматическую ссылку на QR, а так же в appsettings есть возможность выбора порта
This commit is contained in:
1 parent
2482e30cb3
commit
4b78e211f6
9 files changed
+69
-24
No files matched your search
@@ -4,36 +4,36 @@ namespace CartriX.Shared.Classes
|
||||
{
|
||||
public class ApiRoutes
|
||||
{
|
||||
static string baseUrl = "http://192.168.0.26:5000/api";
|
||||
static public class Report
|
||||
{
|
||||
public static string ListCausesForReplace => $"{baseUrl}/{nameof(Report)}/{nameof(ListCausesForReplace)}";
|
||||
public static string CreateRequestForReplace => $"{baseUrl}/{nameof(Report)}/{nameof(CreateRequestForReplace)}";
|
||||
public static string GetRecordPrintAtSeletedDays(int Days) => $"{baseUrl}/{nameof(Report)}/{nameof(GetRecordPrintAtSeletedDays)}?{nameof(Days)}={Days}";
|
||||
public static string ListCausesForReplace => $"api/{nameof(Report)}/{nameof(ListCausesForReplace)}";
|
||||
public static string CreateRequestForReplace => $"api/{nameof(Report)}/{nameof(CreateRequestForReplace)}";
|
||||
public static string GetRecordPrintAtSeletedDays(int Days) => $"api/{nameof(Report)}/{nameof(GetRecordPrintAtSeletedDays)}?{nameof(Days)}={Days}";
|
||||
}
|
||||
public static class Network
|
||||
{
|
||||
public static string Available => $"{baseUrl}/{nameof(Network)}/{nameof(Available)}";
|
||||
public static string GetSNMPData(string IpAddressOrHostname, string OID) => $"{baseUrl}/{nameof(Network)}/{nameof(GetSNMPData)}?{nameof(IpAddressOrHostname)}={IpAddressOrHostname}&{nameof(OID)}={OID}";
|
||||
public static string Ping(string IpAddressOrHostname) => $"{baseUrl}/{nameof(Network)}/{nameof(Ping)}?{nameof(IpAddressOrHostname)}={IpAddressOrHostname}";
|
||||
public static string Available => $"api/{nameof(Network)}/{nameof(Available)}";
|
||||
public static string BaseAddress => $"api/{nameof(Network)}/{nameof(BaseAddress)}";
|
||||
public static string GetSNMPData(string IpAddressOrHostname, string OID) => $"api/{nameof(Network)}/{nameof(GetSNMPData)}?{nameof(IpAddressOrHostname)}={IpAddressOrHostname}&{nameof(OID)}={OID}";
|
||||
public static string Ping(string IpAddressOrHostname) => $"api/{nameof(Network)}/{nameof(Ping)}?{nameof(IpAddressOrHostname)}={IpAddressOrHostname}";
|
||||
}
|
||||
public static class Cartridge
|
||||
{
|
||||
public static string GetForPrinter(int PrinterId) => $"{baseUrl}/{nameof(Cartridge)}/{nameof(GetForPrinter)}?{nameof(PrinterId)}={PrinterId}";
|
||||
public static string Item(int Id) => $"{baseUrl}/{nameof(Cartridge)}/{nameof(Item)}?{nameof(Id)}={Id}";
|
||||
public static string GetArticlesList => $"{baseUrl}/{nameof(Cartridge)}/{nameof(GetArticlesList)}";
|
||||
public static string List => $"{baseUrl}/{nameof(Cartridge)}/{nameof(List)}";
|
||||
public static string GetForPrinter(int PrinterId) => $"api/{nameof(Cartridge)}/{nameof(GetForPrinter)}?{nameof(PrinterId)}={PrinterId}";
|
||||
public static string Item(int Id) => $"api//{nameof(Cartridge)}/{nameof(Item)}?{nameof(Id)}={Id}";
|
||||
public static string GetArticlesList => $"api/{nameof(Cartridge)}/{nameof(GetArticlesList)}";
|
||||
public static string List => $"api/{nameof(Cartridge)}/{nameof(List)}";
|
||||
}
|
||||
public static class Printer
|
||||
{
|
||||
public static string Item(int Id) => $"{baseUrl}/{nameof(Printer)}/{nameof(Item)}?{nameof(Id)}={Id}";
|
||||
public static string AddPrinter => $"{baseUrl}/{nameof(Printer)}/{nameof(AddPrinter)}";
|
||||
public static string ListConnectionType => $"{baseUrl}/{nameof(Printer)}/{nameof(ListConnectionType)}";
|
||||
public static string ListPrintType => $"{baseUrl}/{nameof(Printer)}/{nameof(ListPrintType)}";
|
||||
public static string Item(int Id) => $"api/{nameof(Printer)}/{nameof(Item)}?{nameof(Id)}={Id}";
|
||||
public static string AddPrinter => $"api/{nameof(Printer)}/{nameof(AddPrinter)}";
|
||||
public static string ListConnectionType => $"api/{nameof(Printer)}/{nameof(ListConnectionType)}";
|
||||
public static string ListPrintType => $"api/{nameof(Printer)}/{nameof(ListPrintType)}";
|
||||
}
|
||||
public static class Location
|
||||
{
|
||||
public static string List => $"{baseUrl}/{nameof(Location)}/{nameof(List)}";
|
||||
public static string List => $"api/{nameof(Location)}/{nameof(List)}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user