BlazorStart/Start/Shared/Api/IBookmarksApi.cs

18 lines
473 B
C#
Raw Permalink Normal View History

using System.Threading.Tasks;
using Refit;
2021-12-05 23:50:48 +00:00
using System.Net.Http;
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);
[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);
[Delete("/Delete/{bookmarkId}")]
2021-12-05 23:50:48 +00:00
Task<HttpResponseMessage> DeleteBookmark(int bookmarkId);
}
}