feat(dal): добавлен Shortcode "%СВЯЗИ-ПН%", добавлен метод GetAvailableShortcodesAsync для отображения доступных изменямеых частей в API
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
using RabbitMQ.Client.Exceptions;
|
||||
|
||||
namespace PARR.API.Contracts.V1
|
||||
namespace PARR.API.Contracts.V1
|
||||
{
|
||||
// https://tproger.ru/translations/luchshie-praktiki-razrabotki-rest-api-20-sovetov/
|
||||
|
||||
@@ -514,6 +512,11 @@ namespace PARR.API.Contracts.V1
|
||||
public const string getParamDate = "{date}";
|
||||
}
|
||||
|
||||
public static class Shortcode
|
||||
{
|
||||
public const string GetAll = Base + "/shortcodes/";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
15
PARR.API/Contracts/V1/Responses/ShortcodeResponse.cs
Normal file
15
PARR.API/Contracts/V1/Responses/ShortcodeResponse.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using PARR.Constants;
|
||||
|
||||
namespace PARR.API.Contracts.V1.Responses
|
||||
{
|
||||
public class ShortcodeResponse : ShortcodeBaseResponse
|
||||
{
|
||||
}
|
||||
|
||||
public class ShortcodeBaseResponse
|
||||
{
|
||||
public required string Shortcode { get; set; }
|
||||
public required string Description { get; set; }
|
||||
public required ShortcodeTypeEnum Type { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user