mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 20:40:55 +00:00
asdasdasd
This commit is contained in:
1 parent
c4182ec609
commit
9905cde527
76 files changed
+2895
-2529
No files matched your search
@@ -0,0 +1,42 @@
|
||||
using System.Net;
|
||||
|
||||
namespace CartriX.Shared
|
||||
{
|
||||
public class ApiRoutes
|
||||
{
|
||||
static string baseUrl = "http://localhost:5197/api";
|
||||
static public class Cartridge
|
||||
{
|
||||
public static string Add => $"{baseUrl}/{nameof(Cartridge)}/{nameof(Add)}";
|
||||
public static string List => $"{baseUrl}/{nameof(Cartridge)}/{nameof(List)}";
|
||||
public static string Models => $"{baseUrl}/{nameof(Cartridge)}/{nameof(Models)}";
|
||||
public static string Delete => $"{baseUrl}/{nameof(Cartridge)}/{nameof(Delete)}";
|
||||
public static string ModelsAndManufacturers => $"{baseUrl}/{nameof(Cartridge)}/{nameof(ModelsAndManufacturers)}";
|
||||
public static string Item(int id) => $"{baseUrl}/{nameof(Cartridge)}/{nameof(Item)}";
|
||||
}
|
||||
static public class Article
|
||||
{
|
||||
public static string List => $"{baseUrl}/{nameof(Article)}/{nameof(List)}";
|
||||
}
|
||||
public static class Location
|
||||
{
|
||||
public static string List => $"{baseUrl}/{nameof(Location)}/{nameof(List)}";
|
||||
}
|
||||
public static class Printer
|
||||
{
|
||||
public static string Add => $"{baseUrl}/{nameof(Printer)}/{nameof(Add)}";
|
||||
public static string Item => $"{baseUrl}/{nameof(Printer)}/{nameof(Item)}";
|
||||
public static string Models => $"{baseUrl}/{nameof(Printer)}/{nameof(Models)}";
|
||||
public static string PrintTypes => $"{baseUrl}/{nameof(Printer)}/{nameof(PrintTypes)}";
|
||||
}
|
||||
public static class Snmp
|
||||
{
|
||||
public static string GetDataFromSnmp(string IpOrHostname, string Oid) => $"{baseUrl}/{nameof(Snmp)}/{nameof(GetDataFromSnmp)}?{nameof(IpOrHostname)}={IpOrHostname}&{nameof(Oid)}={Oid}";
|
||||
}
|
||||
public static class Network
|
||||
{
|
||||
public static string GetHostname(string ipAddress) => $"{baseUrl}/{nameof(Network)}/{nameof(GetHostname)}?{nameof(ipAddress)}={ipAddress}";
|
||||
public static string GetIpAddress(string hostname) => $"{baseUrl}/{nameof(Network)}/{nameof(GetIpAddress)}?{nameof(hostname)}={hostname}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user