summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ApiModels.csproj9
-rw-r--r--Tag.cs14
2 files changed, 21 insertions, 2 deletions
diff --git a/ApiModels.csproj b/ApiModels.csproj
index 35fda64..1623f92 100644
--- a/ApiModels.csproj
+++ b/ApiModels.csproj
@@ -7,9 +7,14 @@
<AssemblyTitle>HyperBooru.ApiModels</AssemblyTitle>
<RootNamespace>HyperBooru.ApiModels</RootNamespace>
<AssemblyName>HyperBooru.ApiModels</AssemblyName>
- <AssemblyVersion>0.16.0.0</AssemblyVersion>
+ <AssemblyVersion>0.17.0.0</AssemblyVersion>
<FileVersion>$(AssemblyVersion)</FileVersion>
- <Version>0.16-alpha</Version>
+ <Version>0.17-alpha</Version>
+ </PropertyGroup>
+
+ <PropertyGroup Condition="'$(Configuration)' == 'Release'">
+ <DebugType>None</DebugType>
+ <DebugSymbols>false</DebugSymbols>
</PropertyGroup>
</Project>
diff --git a/Tag.cs b/Tag.cs
new file mode 100644
index 0000000..9f3577c
--- /dev/null
+++ b/Tag.cs
@@ -0,0 +1,14 @@
+namespace HyperBooru.ApiModels;
+
+public record TagCreateRequest {
+ public string? Namespace { get; init; }
+ public required string Name { get; init; }
+ public string? Alias { get; init; }
+ public Guid[]? ImplicitTags { get; init; }
+}
+
+public record TagUpdateRequest {
+ public string? Namespace { get; init; }
+ public string? Name { get; init; }
+ public string? Alias { get; init; }
+}