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 {
|
|
|
|
|
[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,
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
}
|