aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/DataStore/Tango.DataStore.Web
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-11-17 15:11:40 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-11-17 15:11:40 +0200
commit69dbba322f6ef275134b7b214510e47b9fcdd0b0 (patch)
treefd7a96fcf96ce86b7fa80f38161cb23ea140973c /Software/Visual_Studio/DataStore/Tango.DataStore.Web
parent6f0f2a7908884deab8aca33ec967d03c5e564060 (diff)
downloadTango-69dbba322f6ef275134b7b214510e47b9fcdd0b0.tar.gz
Tango-69dbba322f6ef275134b7b214510e47b9fcdd0b0.zip
IMplemented NSwag for DataStore WebAPI controller.
Implemented data store tool dsUtil.
Diffstat (limited to 'Software/Visual_Studio/DataStore/Tango.DataStore.Web')
-rw-r--r--Software/Visual_Studio/DataStore/Tango.DataStore.Web/LoginRequest.cs14
-rw-r--r--Software/Visual_Studio/DataStore/Tango.DataStore.Web/LoginResponse.cs14
-rw-r--r--Software/Visual_Studio/DataStore/Tango.DataStore.Web/Tango.DataStore.Web.csproj2
3 files changed, 30 insertions, 0 deletions
diff --git a/Software/Visual_Studio/DataStore/Tango.DataStore.Web/LoginRequest.cs b/Software/Visual_Studio/DataStore/Tango.DataStore.Web/LoginRequest.cs
new file mode 100644
index 000000000..4a68fe3ab
--- /dev/null
+++ b/Software/Visual_Studio/DataStore/Tango.DataStore.Web/LoginRequest.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Tango.DataStore.Web
+{
+ public class LoginRequest
+ {
+ public String Email { get; set; }
+ public String Password { get; set; }
+ }
+}
diff --git a/Software/Visual_Studio/DataStore/Tango.DataStore.Web/LoginResponse.cs b/Software/Visual_Studio/DataStore/Tango.DataStore.Web/LoginResponse.cs
new file mode 100644
index 000000000..5c70d85b9
--- /dev/null
+++ b/Software/Visual_Studio/DataStore/Tango.DataStore.Web/LoginResponse.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Tango.DataStore.Web
+{
+ public class LoginResponse
+ {
+ public String Token { get; set; }
+ public DateTime ExpirationUTC { get; set; }
+ }
+}
diff --git a/Software/Visual_Studio/DataStore/Tango.DataStore.Web/Tango.DataStore.Web.csproj b/Software/Visual_Studio/DataStore/Tango.DataStore.Web/Tango.DataStore.Web.csproj
index ac4e4a6f8..9233a050b 100644
--- a/Software/Visual_Studio/DataStore/Tango.DataStore.Web/Tango.DataStore.Web.csproj
+++ b/Software/Visual_Studio/DataStore/Tango.DataStore.Web/Tango.DataStore.Web.csproj
@@ -52,6 +52,8 @@
<Compile Include="DataStoreWebItemType.cs" />
<Compile Include="DataStoreWebPutItem.cs" />
<Compile Include="ExtensionMethods.cs" />
+ <Compile Include="LoginRequest.cs" />
+ <Compile Include="LoginResponse.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>