From dc1938dbb98dc9edf16558e505b2961246c83e6e Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Wed, 30 Oct 2024 21:59:53 +0100 Subject: Add API and Test --- Api/Contract/NewContent.cs | 7 +++++++ Api/Contract/WikiPage.cs | 7 +++++++ Api/Contract/WikiProperty.cs | 8 ++++++++ 3 files changed, 22 insertions(+) create mode 100644 Api/Contract/NewContent.cs create mode 100644 Api/Contract/WikiPage.cs create mode 100644 Api/Contract/WikiProperty.cs (limited to 'Api/Contract') 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; } +} -- cgit v1.2.3