2021-11-29 06:32:21 +00:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Refit;
|
2021-12-05 23:50:48 +00:00
|
|
|
|
using System.Net.Http;
|
2021-11-29 06:32:21 +00:00
|
|
|
|
|
|
|
|
|
namespace Start.Shared.Api {
|
|
|
|
|
public interface IBookmarksApi {
|
2021-12-14 00:27:13 +00:00
|
|
|
|
[Get("/{bookmarkId}")]
|
2021-12-05 23:50:48 +00:00
|
|
|
|
Task<ApiResponse<BookmarkDto?>> GetBookmark(int bookmarkId);
|
2021-11-29 06:32:21 +00:00
|
|
|
|
|
|
|
|
|
[Post("/Create")]
|
2021-12-05 23:50:48 +00:00
|
|
|
|
Task<ApiResponse<BookmarkDto?>> CreateBookmark(string title, string url, string? notes,
|
2022-04-19 20:04:38 +00:00
|
|
|
|
int sortOrder, int bookmarkGroupId);
|
2021-11-29 06:32:21 +00:00
|
|
|
|
|
|
|
|
|
[Delete("/Delete/{bookmarkId}")]
|
2021-12-05 23:50:48 +00:00
|
|
|
|
Task<HttpResponseMessage> DeleteBookmark(int bookmarkId);
|
2021-11-29 06:32:21 +00:00
|
|
|
|
}
|
|
|
|
|
}
|