Added page and endpoints for managing Tags

This commit is contained in:
2023-02-19 20:51:31 -06:00
parent 1f3adf0932
commit c55b018c0d
27 changed files with 896 additions and 70 deletions

View File

@ -15,6 +15,6 @@ namespace YABA.Common.DTOs.Bookmarks
public string? Note { get; set; }
public bool IsHidden { get; set; }
public string Url { get; set; }
public List<TagSummaryDTO>? Tags { get; set; } = new List<TagSummaryDTO>();
public List<TagDTO>? Tags { get; set; } = new List<TagDTO>();
}
}

View File

@ -0,0 +1,11 @@
using System.ComponentModel.DataAnnotations;
namespace YABA.Common.DTOs.Tags
{
public class CreateTagDTO
{
[Required]
public string Name { get; set; }
public bool IsHidden { get; set; }
}
}

View File

@ -3,7 +3,6 @@
public class TagDTO
{
public int Id { get; set; }
public bool IsDeleted { get; set; }
public string Name { get; set; }
public bool IsHidden { get; set; }
}

View File

@ -1,9 +0,0 @@

namespace YABA.Common.DTOs.Tags
{
public class TagSummaryDTO
{
public int Id { get; set; }
public string Name { get; set; }
}
}

View File

@ -0,0 +1,10 @@
using System.ComponentModel.DataAnnotations;
namespace YABA.Common.DTOs.Tags
{
public class UpdateTagDTO
{
public string? Name { get; set; }
public bool? IsHidden { get; set; }
}
}