BlazorStart/Start/Shared/Api/IBookmarksApi.cs
2021-12-05 15:50:48 -08:00

18 lines
457 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 bookmarkGroupId);
[Delete("/Delete/{bookmarkId}")]
Task<HttpResponseMessage> DeleteBookmark(int bookmarkId);
}
}