BlazorStart/Start/Shared/Api/IBookmarksApi.cs

18 lines
457 B
C#
Raw 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 {
[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,
int bookmarkGroupId);
[Delete("/Delete/{bookmarkId}")]
2021-12-05 23:50:48 +00:00
Task<HttpResponseMessage> DeleteBookmark(int bookmarkId);
}
}