summaryrefslogtreecommitdiff
path: root/Api/Contract
diff options
context:
space:
mode:
authorLuca Matei Pintilie <luca@lucamatei.com>2024-10-30 20:59:53 +0000
committerLuca Matei Pintilie <luca@lucamatei.com>2024-10-30 20:59:53 +0000
commitdc1938dbb98dc9edf16558e505b2961246c83e6e (patch)
tree7953186976085ceca6c03a208d1ffd9596f745be /Api/Contract
parentfc3c7e3b3c955cc274d4668768466fecb8fb727b (diff)
downloadwikiwaka-dc1938dbb98dc9edf16558e505b2961246c83e6e.tar
wikiwaka-dc1938dbb98dc9edf16558e505b2961246c83e6e.tar.gz
wikiwaka-dc1938dbb98dc9edf16558e505b2961246c83e6e.tar.bz2
wikiwaka-dc1938dbb98dc9edf16558e505b2961246c83e6e.tar.lz
wikiwaka-dc1938dbb98dc9edf16558e505b2961246c83e6e.tar.xz
wikiwaka-dc1938dbb98dc9edf16558e505b2961246c83e6e.tar.zst
wikiwaka-dc1938dbb98dc9edf16558e505b2961246c83e6e.zip
Add API and TestHEADmaster
Diffstat (limited to '')
-rw-r--r--Api/Contract/NewContent.cs7
-rw-r--r--Api/Contract/WikiPage.cs7
-rw-r--r--Api/Contract/WikiProperty.cs8
3 files changed, 22 insertions, 0 deletions
diff --git a/Api/Contract/NewContent.cs b/Api/Contract/NewContent.cs
new file mode 100644
index 0000000..67a0019
--- /dev/null
+++ b/Api/Contract/NewContent.cs
@@ -0,0 +1,7 @@
+namespace WikiWaka.Api.Contract;
+
+public class NewContent
+{
+ public required string Text { get; set; }
+ public required string LanguageCode { get; set; }
+}
diff --git a/Api/Contract/WikiPage.cs b/Api/Contract/WikiPage.cs
new file mode 100644
index 0000000..0ea9d0a
--- /dev/null
+++ b/Api/Contract/WikiPage.cs
@@ -0,0 +1,7 @@
+namespace WikiWaka.Api.Contract;
+
+public class WikiPage
+{
+ public required int Id { get; init; }
+ public required WikiProperty Property { get; init; }
+}
diff --git a/Api/Contract/WikiProperty.cs b/Api/Contract/WikiProperty.cs
new file mode 100644
index 0000000..7f00812
--- /dev/null
+++ b/Api/Contract/WikiProperty.cs
@@ -0,0 +1,8 @@
+namespace WikiWaka.Api.Contract;
+
+public class WikiProperty
+{
+ public required int Id { get; init; }
+ public required string Text { get; set; }
+ public required string LanguageCode { get; set; }
+}