mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
27 lines
1.1 KiB
C#
27 lines
1.1 KiB
C#
using System.Net;
|
|
|
|
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 class Network
|
|
{
|
|
public static string Available => $"{baseUrl}/{nameof(Network)}/{nameof(Available)}";
|
|
}
|
|
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 class Printer
|
|
{
|
|
public static string Item(int Id) => $"{baseUrl}/{nameof(Printer)}/{nameof(Item)}?{nameof(Id)}={Id}";
|
|
}
|
|
}
|
|
} |