Add creating bookmark groups
This commit is contained in:
parent
d997655b59
commit
7841d1d1a8
28 changed files with 692 additions and 114 deletions
17
Start/Shared/Api/IBookmarkGroupsApi.cs
Normal file
17
Start/Shared/Api/IBookmarkGroupsApi.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using Refit;
|
||||
|
||||
namespace Start.Shared.Api {
|
||||
public interface IBookmarkGroupsApi {
|
||||
[Get("/{bookmarkGroupId}")]
|
||||
Task<ApiResponse<BookmarkGroupDto?>> GetBookmarkGroup(int bookmarkGroupId);
|
||||
|
||||
[Post("/Create")]
|
||||
Task<ApiResponse<BookmarkGroupDto?>> CreateBookmarkGroup(string title, string color,
|
||||
int bookmarkContainerId);
|
||||
|
||||
[Delete("/Delete/{bookmarkGroupId}")]
|
||||
Task<HttpResponseMessage> DeleteBookmarkGroup(int bookmarkGroupId);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,15 +1,17 @@
|
|||
using System.Threading.Tasks;
|
||||
using Refit;
|
||||
using System.Net.Http;
|
||||
|
||||
namespace Start.Shared.Api {
|
||||
public interface IBookmarksApi {
|
||||
[Get("{bookmarkId}")]
|
||||
Task<BookmarkDto?> GetBookmark(int bookmarkId);
|
||||
Task<ApiResponse<BookmarkDto?>> GetBookmark(int bookmarkId);
|
||||
|
||||
[Post("/Create")]
|
||||
Task CreateBookmark(string title, string url, string? notes, int bookmarkGroupId);
|
||||
Task<ApiResponse<BookmarkDto?>> CreateBookmark(string title, string url, string? notes,
|
||||
int bookmarkGroupId);
|
||||
|
||||
[Delete("/Delete/{bookmarkId}")]
|
||||
Task DeleteBookmark(int bookmarkId);
|
||||
Task<HttpResponseMessage> DeleteBookmark(int bookmarkId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue