BlazorStart/Start/Shared/Api/IBookmarksApi.cs
2022-04-19 13:04:38 -07:00

18 lines
473 B
C#

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