BlazorStart/Start/Shared/Api/IBookmarksApi.cs
2021-11-28 22:32:21 -08:00

16 lines
370 B
C#

using System.Threading.Tasks;
using Refit;
namespace Start.Shared.Api {
public interface IBookmarksApi {
[Get("{bookmarkId}")]
Task<BookmarkDto?> GetBookmark(int bookmarkId);
[Post("/Create")]
Task CreateBookmark(string title, string url, string? notes, int bookmarkGroupId);
[Delete("/Delete/{bookmarkId}")]
Task DeleteBookmark(int bookmarkId);
}
}