-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathApiRoutes.cs
29 lines (27 loc) · 1.21 KB
/
ApiRoutes.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
namespace CleanArchitecture.FunctionalTests.Common;
internal static class ApiRoutes
{
internal static class V1
{
internal static class Account
{
internal const string Authenticate = "/api/v1/Account/Authenticate";
internal const string ChangeUserName = "/api/v1/Account/ChangeUserName";
internal const string ChangePassword = "/api/v1/Account/ChangePassword";
internal const string Start = "/api/v1/Account/Start";
}
internal static class Product
{
internal const string GetPagedListProduct = "/api/v1/Product/GetPagedListProduct";
internal const string GetProductById = "/api/v1/Product/GetProductById";
internal const string CreateProduct = "/api/v1/Product/CreateProduct";
internal const string UpdateProduct = "/api/v1/Product/UpdateProduct";
internal const string DeleteProduct = "/api/v1/Product/DeleteProduct";
}
}
internal static string AddQueryString(this string url, string key, string value)
{
var separator = url.Contains("?") ? "&" : "?";
return $"{url}{separator}{Uri.EscapeDataString(key)}={Uri.EscapeDataString(value)}";
}
}