Implementing API base functionality.

This commit is contained in:
Max 2023-09-03 21:26:20 +02:00
parent e1f33c96c2
commit 1a686219ff
6 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,17 @@
namespace SharpRSS.API.Contracts.DTO
{
public record ApiKey()
{
public string Key { get; }
public string Usage { get; }
public KeyStatus Status { get; }
public string Message { get; }
}
public enum KeyStatus
{
Active,
Disabled,
Unavailable
}
}

View File

@ -0,0 +1,10 @@
namespace SharpRSS.API.Contracts
{
public class RssConnection
{
public RssConnection(string connection, string apiKey)
{
// Identify with server
}
}
}

View File

@ -0,0 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>10</LangVersion>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\ToolQit\ToolQit\ToolQit.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Auth" />
</ItemGroup>
</Project>

View File

@ -18,6 +18,7 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\ToolQit\ToolQit.Logging.Serilog\ToolQit.Logging.Serilog.csproj" /> <ProjectReference Include="..\..\ToolQit\ToolQit.Logging.Serilog\ToolQit.Logging.Serilog.csproj" />
<ProjectReference Include="..\SharpRSS.API.Contracts\SharpRSS.API.Contracts.csproj" />
<ProjectReference Include="..\ToolQit\ToolQit\ToolQit.csproj" /> <ProjectReference Include="..\ToolQit\ToolQit\ToolQit.csproj" />
</ItemGroup> </ItemGroup>

View File

@ -17,6 +17,7 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\ToolQit\ToolQit.Logging.Serilog\ToolQit.Logging.Serilog.csproj" /> <ProjectReference Include="..\..\ToolQit\ToolQit.Logging.Serilog\ToolQit.Logging.Serilog.csproj" />
<ProjectReference Include="..\SharpRSS.API.Contracts\SharpRSS.API.Contracts.csproj" />
<ProjectReference Include="..\ToolQit\ToolQit\ToolQit.csproj" /> <ProjectReference Include="..\ToolQit\ToolQit\ToolQit.csproj" />
</ItemGroup> </ItemGroup>

View File

@ -15,6 +15,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpRSS.API", "SharpRSS.AP
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpRSS.Blazor", "SharpRSS.Blazor\SharpRSS.Blazor.csproj", "{28FA97A5-ECAE-4697-BA48-DA1C62E5B303}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpRSS.Blazor", "SharpRSS.Blazor\SharpRSS.Blazor.csproj", "{28FA97A5-ECAE-4697-BA48-DA1C62E5B303}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpRSS.API.Contracts", "SharpRSS.API.Contracts\SharpRSS.API.Contracts.csproj", "{90D669D4-8B4C-4A9D-BA6B-1CB840B69B48}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
@ -45,6 +47,10 @@ Global
{28FA97A5-ECAE-4697-BA48-DA1C62E5B303}.Debug|Any CPU.Build.0 = Debug|Any CPU {28FA97A5-ECAE-4697-BA48-DA1C62E5B303}.Debug|Any CPU.Build.0 = Debug|Any CPU
{28FA97A5-ECAE-4697-BA48-DA1C62E5B303}.Release|Any CPU.ActiveCfg = Release|Any CPU {28FA97A5-ECAE-4697-BA48-DA1C62E5B303}.Release|Any CPU.ActiveCfg = Release|Any CPU
{28FA97A5-ECAE-4697-BA48-DA1C62E5B303}.Release|Any CPU.Build.0 = Release|Any CPU {28FA97A5-ECAE-4697-BA48-DA1C62E5B303}.Release|Any CPU.Build.0 = Release|Any CPU
{90D669D4-8B4C-4A9D-BA6B-1CB840B69B48}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{90D669D4-8B4C-4A9D-BA6B-1CB840B69B48}.Debug|Any CPU.Build.0 = Debug|Any CPU
{90D669D4-8B4C-4A9D-BA6B-1CB840B69B48}.Release|Any CPU.ActiveCfg = Release|Any CPU
{90D669D4-8B4C-4A9D-BA6B-1CB840B69B48}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE