features/api-cleanup #15

Merged
jtom38 merged 13 commits from features/api-cleanup into main 2023-07-29 09:47:30 -07:00
9 changed files with 15 additions and 18 deletions
Showing only changes of commit 83203f967d - Show all commits

View File

@ -1,12 +0,0 @@
using System.Collections;
namespace Newsbot.Collector.Api.Domain.Results;
public class AuthenticationResult
{
public string? Token { get; set; }
public string? RefreshToken { get; set; }
public bool IsSuccessful { get; set; }
public IEnumerable<string>? ErrorMessage { get; set; }
}

View File

@ -4,6 +4,8 @@
<TargetFramework>net7.0</TargetFramework> <TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@ -1,4 +1,4 @@
namespace Newsbot.Collector.Api.Domain.Requests; namespace Newsbot.Collector.Domain.Requests;
public class AddRoleRequest public class AddRoleRequest
{ {

View File

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Newsbot.Collector.Api.Domain.Requests; namespace Newsbot.Collector.Domain.Requests;
public class RegisterUserRequest public class RegisterUserRequest
{ {

View File

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Newsbot.Collector.Api.Domain.Requests; namespace Newsbot.Collector.Domain.Requests;
public class UserLoginRequest public class UserLoginRequest
{ {

View File

@ -1,4 +1,4 @@
namespace Newsbot.Collector.Api.Domain.Requests; namespace Newsbot.Collector.Domain.Requests;
public class UserRefreshTokenRequest public class UserRefreshTokenRequest
{ {

View File

@ -1,4 +1,4 @@
namespace Newsbot.Collector.Api.Domain.Response; namespace Newsbot.Collector.Domain.Response;
public class AuthFailedResponse public class AuthFailedResponse
{ {

View File

@ -1,4 +1,4 @@
namespace Newsbot.Collector.Api.Domain.Response; namespace Newsbot.Collector.Domain.Response;
public class AuthSuccessfulResponse public class AuthSuccessfulResponse
{ {

View File

@ -0,0 +1,7 @@
namespace Newsbot.Collector.Domain.Results;
public class AuthenticationResult : BaseResult
{
public string? Token { get; set; }
public string? RefreshToken { get; set; }
}