Added endpoint and functionality for getting, retrieving and deleting bookmarks, and for adding and removing tags for a bookmark

This commit is contained in:
Carl Tibule
2023-01-28 00:48:48 -06:00
parent 08823de474
commit b9cd6b3c6a
34 changed files with 1148 additions and 42 deletions

View File

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using YABA.Common.DTOs.Tags;
using YABA.Common.Interfaces;
namespace YABA.Common.DTOs.Bookmarks
{
public class BookmarkDTO : IBookmark
{
public int Id { get; set; }
public DateTimeOffset CreatedOn { get; set; }
public DateTimeOffset LastModified { get; set; }
public string Title { get; set; }
public string Description { get; set; }
public string Note { get; set; }
public bool IsHidden { get; set; }
public string Url { get; set; }
public IList<TagDTO> Tags { get; set; } = new List<TagDTO>();
}
}

View File

@ -0,0 +1,13 @@
using YABA.Common.Interfaces;
namespace YABA.Common.DTOs.Bookmarks
{
public class CreateBookmarkRequestDTO : IBookmark
{
public string Title { get; set; }
public string Description { get; set; }
public string Note { get; set; }
public bool IsHidden { get; set; }
public string Url { get; set; }
}
}

View File

@ -0,0 +1,13 @@
using YABA.Common.Interfaces;
namespace YABA.Common.DTOs.Bookmarks
{
public class UpdateBookmarkRequestDTO : IBookmark
{
public string Title { get; set; }
public string Description { get; set; }
public string Note { get; set; }
public bool IsHidden { get; set; }
public string Url { get; set; }
}
}